Skip to content

monster PR #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 55 commits into from
Jun 26, 2019
Merged

monster PR #779

merged 55 commits into from
Jun 26, 2019

Conversation

gdementen
Copy link
Contributor

after a few marathon rebases, here it is finally. Sorry it took so long and sorry for the monstruous size.

As reviewing the implementation is much less important than reviewing the API (mostly method names and argument names), you could concentrate yourself on the "implemented XXX" commits.

Also, I don't know whether wrap_elementwise_array_func, zip_array_values and zip_array_items should be mentioned in the API & changelog.
Those are pretty advanced functions and I don't expect any of our users to use them by themselves but we will add them to their code,
so it might make the case for adding them to the API/changelog in case they wonder what they are.

Currently, wrap_elementwise_array_func is mentionened but zip* are not.

@gdementen
Copy link
Contributor Author

Many tests are failing with python 2.7 😢 ... I'll fix that ASAP, but since this shouldn't change the API, you can start reviewing this monster if you have time.

@gdementen gdementen requested a review from alixdamman June 20, 2019 13:15
@gdementen gdementen added this to the 0.30 milestone Jun 20, 2019
@gdementen
Copy link
Contributor Author

Oh, and I still must tackle #711. Should be easy now that this PR is done.

@alixdamman
Copy link
Collaborator

LGTM. Push when you feel ready.

@gdementen
Copy link
Contributor Author

@alixdamman I added a few missing tests and (hopefully) resolved the remaining issues you pointed. Do you think the last commit (about LArray.keys, values & items) is good enough (until we fix the issue properly in #447)?

@alixdamman
Copy link
Collaborator

The last commit is good enough for me.

gdementen added 27 commits June 26, 2019 15:30
it computes unique values across multiple iterables
…deprecated LArray.as_table() (merged in LArray.dump()) and fixed 65535 bug
* generalized it to more than one dimension (closes #56)

  - works for both stack([(ndkey, value), ...], axis=axes) and stack({ndkey: value}, several_axes)
  - deprecated axis argument in favor of axes

* changed the exception when using **kwargs without an axis on Python < 3.6 to a warning

* allowed using a dict without axis (closes #581, closes #755)

  This will produces a warning on Python < 3.7

* added support for res_axes
we should use raise(match=) instead of raise(message=)
(in comments, error message and docstrings)
…e click away anyway)

I kept them for improvements because in that case the examples for that specific change are usually buried in a lot of other code.
this also slightly simplify _key_to_igroups
reordered by perceived importance, add a few links, remove broken links, etc.
@gdementen gdementen merged commit 7e02aea into master Jun 26, 2019
@gdementen gdementen deleted the monster_branch branch June 26, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants