SerPy: The Python API for Serpent
The API for Serpent2. Currently, SerPy includes basic features to support interactions with MCNPy.
Dependencies
py4j
.h5py
psutil
numpy
metapy
- Everything else should come with a standard Python install
How to Install
- Clone the repository:
git clone https://github.rpi.edu/NuCoMP/serpy.git
. - Ensure you are running the desired Python environment.
- Try
conda activate ENV_NAME
to switch.
- Try
- Run
pip install /path/to/cloned/repo/dist/serpy-X.whl
whereX
is the version.- All dependencies except
metapy
will be downloaded if needed. metapy
must be installed from the metapy repository.
- All dependencies except
- Done!
Building a New Wheel
- Use
pip uninstall serpy
to uninstall current version. - Run
python /path/to/cloned/repo/setup.py
to build the wheel.