undark-lab / swyft

A system for scientific simulation-based inference at scale.
Other
161 stars 14 forks source link

Fix simulator test warnings #77

Closed fnattino closed 3 years ago

fnattino commented 3 years ago

To fix #76 :

bkmi commented 3 years ago

Before

$ ls
CONTRIBUTING.md  dev  docs  env  LICENSE  notebooks  pyproject.toml  README.md  setup.cfg  setup.py  swyft  swyft.egg-info  swyft-iterator-example.ipynb  tests

run test

$ pytest tests/
=========================================================================================== test session starts ===========================================================================================
platform linux -- Python 3.8.11, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /home/ben/sci/swyft
plugins: anyio-2.2.0
collected 519 items                                                                                                                                                                                       

tests/network_test.py ............................................................................................................................................................................. [ 33%]
...................................................................................                                                                                                                 [ 49%]
tests/prior_test.py .....................sssssssssssssssssssss.............................................                                                                                         [ 66%]
tests/prior_truncator_test.py ......                                                                                                                                                                [ 67%]
tests/simulator_test.py ..................                                                                                                                                                          [ 70%]
tests/store_test.py ..............                                                                                                                                                                  [ 73%]
tests/utils/array_test.py ..........................................................................................................................................                                [100%]

==================================================================================== 498 passed, 21 skipped in 38.84s =====================================================================================

after

$ ls
CONTRIBUTING.md  dask-worker-space  dev  docs  env  LICENSE  notebooks  pyproject.toml  README.md  setup.cfg  setup.py  swyft  swyft.egg-info  swyft-iterator-example.ipynb  tests

unfortunately it's still making the directory.

fnattino commented 3 years ago

There was a last test using Dask among the store tests, it should be now fixed as well!

bkmi commented 3 years ago

looks good to me