Skip to content
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 tensor mapping #2720

Merged
merged 1 commit into from Nov 7, 2022
Merged

Conversation

utf
Copy link
Member

@utf utf commented Nov 7, 2022

A recent change (1bdd1b7) broke tensor mapping by making the default tensor and value lists immutable tuples. Tests didn't catch this because there was no tests for creating a tensor mapping starting from an empty mapping.

This PR fixes the bug and adds a new test. If possible, please could you release a new version with this bug fix as currently atomate, atomate2, amset, and other packages are broken.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling e7602d4 on utf:fix-tensor-mapping into dd884cf on materialsproject:master.

@janosh janosh merged commit 511d1ff into materialsproject:master Nov 7, 2022
@janosh
Copy link
Member

janosh commented Nov 7, 2022

@utf Apologies for the breaking change!

Thanks for the fix and the new tests. Will try to make a new release right now (first time for me). Here goes nothing...

@janosh janosh mentioned this pull request Nov 8, 2022
@janosh
Copy link
Member

janosh commented Nov 9, 2022

@utf Took some trial and error to weed out issues from the CI workflow rewrite. The new release is live now https://pypi.org/project/pymatgen/2022.11.7. Hope that unblocks atomate1/2 and amset.

@utf
Copy link
Member Author

utf commented Nov 9, 2022

Thanks very much @janosh!

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.

None yet

3 participants