Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Jan 17, 2025

Fixes #191

The unpinned tests failed because of changes to scipy.constants (specifically the Neutron mass).

I've just replaced the old reference files with what is returned by the workflow.

Do we we want to relax the tolerance on the assertion to avoid getting similar issues in the future?
I imagine a relative tolerance of 1e-5 (currently 1e-7) might be good enough?

@jokasimr
Copy link
Contributor Author

The test fails because in CI we still have scipy=1.14.1

pyproject.toml Outdated
"pandas",
"plopp",
"pythreejs",
"scipy>=1.15.0",
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, should this pin be only for the tests, maybe? The package works perfectly with older Scipy after all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's true 👍

The latest scipy release updated the values of various
constants, among them the neutron mass.
The changes made the tests fail.
@jokasimr
Copy link
Contributor Author

jokasimr commented Jan 20, 2025

I don't know why the docs build fails. It seems it has something to do with Optional / Switchable in essreduce but I'm not familiar with that. Any ideas?

@jokasimr jokasimr merged commit 1c0ea2f into main Jan 21, 2025
4 checks passed
@jokasimr jokasimr deleted the update-test branch January 21, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Nightly action failing for Unpinned releases.

3 participants