-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix joining labels with different number of names #107
Conversation
Here is a pre-built version of the code in this pull request: wheels.zip, you can install it locally by unzipping |
The documentation for this pull request is (or will soon be) available on readthedocs: https://equistore--107.org.readthedocs.build/en/107/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but I really have problems to understand the join function in the tests. Maybe I am missing something simple, but I dont see it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, changes help me a lot. For me, only case 3 of the join operation in the doc is unclear
3283a13
to
391acb1
Compare
I hope I addressed all your comments and already squash the commits. |
391acb1
to
6fc1f53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small suggestions for the doc, the code & tests look good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still dont really understand case 3 of the join operation, but I am okay to do this in a separate PR, might be good to add examples in this separate PR that make it clear. From my side approve.
We can squash and merge if everybody is okay... |
Co-authored-by: agoscinski <agoscinski@users.noreply.github.com>
6e2fc54
to
1a7f764
Compare
I did a tiny bit more reformatting of the docstring, I'll merge once CI is happy! |
When try to join labels of different number of names like
the
_join_labels
label function raises an error becausenp.unique
doesn't work with arrays of inhomogeneous shape. This issue is fixed in this PR.