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 TestMPResterNewBasic + AseAtomsAdaptor test errors and TransformedStructure.from_snl overwriting hist variable #3362

Merged
merged 5 commits into from Sep 30, 2023

Conversation

janosh
Copy link
Member

@janosh janosh commented Sep 30, 2023

d919b59 fix typos
c1c9a10 fix for loop overwriting hist variable in TransformedStructure.from_snl
596a56e fix TestVasprun.test_update_potcar using wrong PotcarSingle hash: md5_computed_file_hash should be md5_header_hash

@janosh janosh added tests Issues about the pymatgen test suite fix Bug fix PRs ci Continuous integration labels Sep 30, 2023
…ecorator added to AseAtomsAdaptor

       structure = aio.AseAtomsAdaptor.get_structure(atoms)
@@ -40,7 +40,6 @@

# NOTE: If making notable changes to this class, please ping @Andrew-S-Rosen on GitHub.
# There are some subtleties in here, particularly related to spins/charges.
@requires(ase_loaded, "ASE needs to be installed.")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Andrew-S-Rosen @shyuep I had to revert the @requires decorator added to AseAtomsAdaptorin in #3359 because it breaks the staticmethod namespace resolution below Python 3.10.

with pytest.raises(AttributeError, match="summary is not an attribute"):
E       Failed: DID NOT RAISE <class 'AttributeError'>
@janosh janosh changed the title Fix CI test errors and TransformedStructure.from_snl overwriting hist variable Fix TestMPResterNewBasic + AseAtomsAdaptor test errors and TransformedStructure.from_snl overwriting hist variable Sep 30, 2023
@janosh janosh merged commit 5e6e4ca into master Sep 30, 2023
21 of 22 checks passed
@janosh janosh deleted the fix-ci branch September 30, 2023 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous integration fix Bug fix PRs tests Issues about the pymatgen test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant