Group Name: DualSapiens
Group Number: 13
Members: Jovana Andrejevic, Gopal Kotecha, Jay Li, Ziyi Zhou
This is the main repository for the gradpy
package, which includes an autodiff
module for automatic differentiation, and a math
module for compatibility with special functions. This repository also hosts the therapy_planner
package, an application of automatic differentiation for dose delivery optimization relevant to Intensity Modulated Radiation Therapy (IMRT), that automatically ships with gradpy
.
The latest documentation for gradpy
and the featured application therapy_planner
is hosted on readthedocs.
-
We suggest working with our packages within a virtual environment. To do so, ensure that
virtualenv
for Python 3 has been installed. -
Create a new virtual environment
env
:
virtualenv env --python=python3
- Activate the environment:
source env/bin/activate
- Install
gradpy
:
pip install gradpy
- Users can now try the examples shown in the Usage section of the documentation to get started!
After installation, users may wish to run tests to validate their installed package is working properly. gradpy
comes with a test suite that may be easily run using pytest
.
- Within the virtual environment in which
gradpy
has been installed, install pytest:
pip install pytest
note: A terminal restart after installing pytest
is likely necessary for changes to take effect.
- Run the
gradpy
test suite:
pytest --pyargs gradpy
therapy_planner
may be installed in the same manner as gradpy
.
- Within a virtual environment, install
therapy_planner
:
pip install therapy_planner
- Users can now follow the demos in the Featured Application section of the documentation.
-
Ensure that
pytest
is installed in the virtual environment. -
Run the
therapy_planner
test suite:
pytest --pyargs therapy_planner