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 tests/astrocyte/test_grower.py::test_grow__run test #6

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

adrien-berchet
Copy link
Member

No description provided.

@adrien-berchet adrien-berchet force-pushed the fix_astrocyte_test branch 2 times, most recently from 408bb46 to 20b79ae Compare February 7, 2022 09:25
All numpy.cos and numpy.arccos values are rounded so that the
returned values do not depend on which system libraries are used
to compute them.
Comment on lines +273 to +274
monkeypatch.setattr(np, "cos", _rounded_cos)
monkeypatch.setattr(np, "arccos", _rounded_arccos)
Copy link
Member Author

@adrien-berchet adrien-berchet Feb 7, 2022

Choose a reason for hiding this comment

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

@eleftherioszisis After many tests I fixed this test by rounding all cos and arccos values. It seems to work (it works on both my local machine and BB5, which was not the case before that). Does it look good to you?

@adrien-berchet adrien-berchet merged commit 8371aac into main Feb 7, 2022
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.

1 participant