The Converter of the project file (JSON file generated by the frontend part) into a set of input files for particle transport simulators:
- SHIELD-HIT12A (beam.dat, mat.dat, geo.dat and detect.dat).
- Fluka
Project make use of poetry for dependency management. If you do not have it installed, check official poetry installation guide.
Project is configured to create virtual environment for you, so you do not need to worry about it.
Virtual environment is created in .venv
folder in the root of the project.
To install the project clone the repository and run the following command in the project directory:
poetry install --without=test
This will result in command yaptide-converter
available inside the virtual environment.
It can be accessed outside virtual environment by running poetry run yaptide-converter
.
Alternatively, you can run poetry shell
to enter virtual environment or check more examples in Poetry documentation section: Activating the virtual environment.
The converter comes with a command line application. It is capable of transforming the JSON project file (generated in the yaptide web interface) into a set of valid input files for SHIELD-HIT12A.
To run the converter use the following command:
python converter/main.py tests/shieldhit/resources/project.json workspace
To run the unit tests, you need to install test dependencies with:
poetry install
Then you can run the tests with:
poetry run pytest
This work was partially funded by EuroHPC PL Project, Smart Growth Operational Programme 4.2