mth5.data.paths
Sets up paths for synthetic data testing.
Attributes
Classes
This class was created to workaround installations with read-only access to the folder containing mth5. |
Module Contents
- class mth5.data.paths.SyntheticTestPaths(sandbox_path: pathlib.Path | None | None = None, ascii_data_path: pathlib.Path | None | None = None)[source]
This class was created to workaround installations with read-only access to the folder containing mth5. Normally, the mth5 data/ folder can be used to store mth5 test data generated when running tests or examples. If data/ is read-only, then this class allows setting “sandbox_path”, a writable folder for tests or examples.
- writability_check() None[source]
Check if the path is writable, and Placeholder
Tried adding the second solution from here: https://stackoverflow.com/questions/2113427/determining-whether-a-directory-is-writeable
If dirs are not writeable, consider HOME = pathlib.Path().home() workaround_sandbox = HOME.joinpath(“.cache”, “aurora”, “sandbox”)