You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building the documentation creates many artifacts (many of which are persistent and found in docs/notebooks/_data/**). Many types of files are written there during execution of the notebooks, with no real order/organizational scheme.
Additionally, running pytest relies on class-housed testing setup code that would be better off created as pytest fixtures. As it stands currently, some functions will create/fetch remote data to be used in multiple tests; When running with pytest-xdist this causes segmentation faults due to synchronous read/write operations on these files.
Potential Solution
Using session-scoped pytest fixtures could help immensely with ensuring that testing data is fetched once and yielded for tests as needed.
The notebooks need to make use of the tempdir library and the write operations should be verified so that notebook execution order is not important.
We should be making use of pooch registries
We can likely work on this after merging #175 which houses an initial implementation.
Additional context
No response
Contribution
I would be willing/able to open a Pull Request to contribute this feature.
The text was updated successfully, but these errors were encountered:
Addressing a Problem?
Building the documentation creates many artifacts (many of which are persistent and found in
docs/notebooks/_data/**
). Many types of files are written there during execution of the notebooks, with no real order/organizational scheme.Additionally, running
pytest
relies on class-housed testing setup code that would be better off created aspytest
fixtures. As it stands currently, some functions will create/fetch remote data to be used in multiple tests; When running withpytest-xdist
this causes segmentation faults due to synchronous read/write operations on these files.Potential Solution
pytest
fixtures could help immensely with ensuring that testing data is fetched once and yielded for tests as needed.tempdir
library and the write operations should be verified so that notebook execution order is not important.We can likely work on this after merging #175 which houses an initial implementation.
Additional context
No response
Contribution
The text was updated successfully, but these errors were encountered: