Fusion Reactor Renderer
The aim of this repository is to take outputs from PROCESS and Bluemira and render them to be able to produce useful visualisations in Blender.
Note
We are tied to the Python version required by the Blender module, bpy. Currently this is Python 3.13.
This project uses Hatch. Although any Python environment manager can be used, we recommend using the default environment setup by Hatch.
To start using Hatch, it must be installed and accessible from the command line. See the Hatch installation for more.
A simple way to install Hatch is to run:
pip install hatchIf you can run hatch -h then Hatch has been successfully installed.
Then run:
hatch shellThis will create the default hatch environment in the project folder.
Setup and activate your environment with your chosen Python environment manager (pyenv, conda, virtualenv, etc.)
python -m pip install .After your environment has been setup, you will need to install PROCESS.
Make sure your environment is active, then run the following:
python -m pip install -e .'[process]'Important
Ensure you have Hatch version 1.13.0 or later, otherwise it won't cover Python 3.13.
If you already have Hatch installed, check your version by running:
hatch --versionIf it is below 1.13.0, please update it:
pip install --upgrade hatchIf you are experiencing issues with Python versions setting to a default rather than the necessary 3.13.0 - 3.13.8 required for fusrr, run this before running hatch shell again:
hatch env remove defaultRun the following to install this project as a local editable install, with the necessary optional dependency groups:
python -m pip install -e .'[dev, test, lint]'Install the following dependencies to enable code completion of Blender Python API modules in commonly used IDEs:
pip install fake-bpy-moduleIf using Hatch: to make it easier to set the path to environment in your code editor, we recommend setting the dirs.env in your hatch config to the following:
[dirs.env]
virtual = ".hatch"The path to this file can be found by running:
hatch config findIf using an editor, set the path to your Python environment in your editor to .hatch/fusrr/bin/python.
FusRR is released under the MIT License