Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Fix tests/astrocyte/test_grower.py::test_grow__run test#6

Merged
adrien-berchet merged 2 commits into
mainfrom
fix_astrocyte_test
Feb 7, 2022
Merged

Fix tests/astrocyte/test_grower.py::test_grow__run test#6
adrien-berchet merged 2 commits into
mainfrom
fix_astrocyte_test

Conversation

@adrien-berchet
Copy link
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant