-
Notifications
You must be signed in to change notification settings - Fork 194
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
spglib 2.5 compatibility #943
Conversation
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.
spglib
is a regular, not a build time dep. add it here
Line 65 in 8e99cf6
"pymatgen >= 2023", |
@janosh my bad, fixed! |
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 a lot @esoteric-ephemera! 👍
@esoteric-ephemera unfortunately it's installing 2.4 in CI, not 2.5 because of
need to update (or delete) those files as well |
some tests are genuinely failing, apparently due to a discontinued/moved superconductivity2018 website. don't look that important, i think we can _______________ MatminerDatasetsTest.test_superconductivity2018 ________________
self = <matminer.datasets.tests.test_datasets.MatminerDatasetsTest testMethod=test_superconductivity2018>
def test_superconductivity2018(self):
object_headers = ["composition"]
numeric_headers = ["Tc"]
> self.universal_dataset_check("superconductivity2018", object_headers, numeric_headers)
matminer/datasets/tests/test_datasets.py:643:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
matminer/datasets/tests/test_datasets.py:[79](https://github.com/hackingmaterials/matminer/actions/runs/10530585976/job/29182138461?pr=943#step:8:80): in universal_dataset_check
self.assertTrue(download_page.ok)
E AssertionError: False is not true |
Really weird - the tests all pass on my side, and for 3.10 (also manually checked the download links). Added the option to repeat trying the connection a few times in the test to see if any pass |
in case you want to to exclude
|
… version, upper pin on numpy
Tests are passing for with the lower version pin of spglib, but not sure why auto-gen-release can't find a github token |
There are many things I don't understand with the CI set up here, don't worry about it... otherwise, sounds great, if you re-commit the spglib 2.5 pin (and now leave it off of setup.py) then I'll merge! |
Huh, actually looks like my latest auto-update PR also picked up the new spglib, without hitting this breakage... Perhaps we could just add a little test here too? |
…ow GH token not being read
Trying to see if setting the workflow permissions explicitly resolves this - don't think this is spglib related |
It seems pretty consistent that the |
Sure, they seem unrelated, let's merge this for now |
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 @esoteric-ephemera!
Simple changes to accommodate updates to spglib's
get_symmetry_dataset
method in 2.5.0, which requires dot-access rather than dict-key access. Also pins the minimum version of spglib to account for this change.