Download envs/kitoverlay/skimage/conftest.py from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/envs/kitoverlay/skimage/conftest.py
- Command line
-
hf download hf://datasets/AVSim/simulation-package/envs/kitoverlay/skimage/conftest.py
-
curl -L -o conftest.py https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/envs/kitoverlay/skimage/conftest.py
321 Bytes
| """ | |
| This conftest is required to set the numpy print options | |
| to legacy mode for doctests | |
| """ | |
| import pytest | |
| def handle_np2(): | |
| # TODO: remove when we require numpy >= 2 | |
| try: | |
| import numpy as np | |
| np.set_printoptions(legacy="1.21") | |
| except ImportError: | |
| pass | |