Developing TorchSim#

Developement environment#

We recommend to use a virtual environement (e.g., Conda), and install torchsim and its dependencies in it.

Running tests#

Test suite can be executed as

cd torchsim
pip install -e .[test]
pytest .

Writing documentation#

Documentation is available online at INFN-MRI/torchsim

It can also be built locally

cd torchsim
pip install -e .[doc]
python -m sphinx docs docs_build

To view the html doc locally you can use

python -m http.server --directory docs_build 8000

And visit localhost:8000 on your web browser.