glowgreen
A Python package for calculating radiation dose from close contact patterns with radioactive patients.
Requires
- Python >= 3.9
Installation
Install the package from the Python Package Index (PyPI) using pip:
python -m pip install --upgrade glowgreen
Alternatively, if you have a clone of the repository on your local computer, you can install it via the pyproject.toml file. First update your pip:
python -m pip install --upgrade pip
Then enter e.g.:
python -m pip install -e \path\to\glowgreen\
These are the preferred methods as they handle the dependencies for you. Another way is to add the src directory to the PYTHONPATH environment variable. For example, for Windows:
set PYTHONPATH=%PYTHONPATH%;\path\to\glowgreen\src\
Dependencies
Python packages:
numpy>= 1.21.4scipy>= 1.7.3matplotlib>= 3.5.0pandas>= 1.3.4
It has not been tested with earlier versions of these packages.
Test suite
You can run the test suite if you have a clone of this repository and glowgreen is installed or in PYTHONPATH. Install pytest:
python -m pip install pytest
Then in the root directory run:
python -m pytest
Documentation
Documentation including API reference can be found here: https://glowgreen.readthedocs.io.
Building the documentation
Documentation is generated using sphinx.
See this tutorial.
If the docs/source/ directory does not exist, see howto_documentation.md to bootstrap the documentation. Otherwise, do the following:
Ensure the hand-crafted elements of the documentation in the docs directory are up-to-date:
- project information in docs/source/conf.py
- src/glowgreen_sample.py is used to generate the figures in docs/source and some of the text in docs/source/overview.rst
Install sphinx:
python -m pip install sphinx
Note the empty directories docs/source/_static and docs/source/_templates are not under version control; optionally create these empty directories to avoid a warning in the next step.
In docs directory, run:
make html
This last step is how the documentation hosted on Read the Docs is built (see also the configuration file .readthedocs.yaml).
Source
https://github.com/SAMI-Medical-Physics/glowgreen
Bug tracker
https://github.com/SAMI-Medical-Physics/glowgreen/issues
Authors
- Jake Forster (Jake.Forster@sa.gov.au)
- Erin Lukas (Erin.Lukas@sa.gov.au)
Copyright
glowgreen is Copyright (C) 2022, 2023, 2025 South Australia Medical Imaging.
License
MIT license. See LICENSE file.
Publishing
glowgreen is published on PyPI:
https://pypi.org/project/glowgreen/
See this tutorial.
Publications
Papers that use glowgreen:
- Forster JC et al. "Close contact restriction periods for patients who have received iodine-131 therapy for differentiated thyroid cancer." J Radiol Prot. 2023;43(2):021501. doi: 10.1088/1361-6498/acc4d0.
Release files for glowgreen 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| glowgreen-0.1.1.tar.gz | 109.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glowgreen-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 125.2 kB
Release files / glowgreen-0.1.1.tar.gz
| Download URL | glowgreen-0.1.1.tar.gz |
|---|---|
| Size | 109.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f99ca8afa85329e0d6106e9c85a7304d620062d3dd90b4eb04fbe0b05b729ea
|
|
BLAKE2b-256 checksum How to use checksums |
962b8ddec368c1177e4cb077b5c1dee600a22bdd1235a703e6a85f6093e8f2b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / glowgreen-0.1.1-py3-none-any.whl
| Download URL | glowgreen-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f36b40d950460307fdebf077e8d627cf43dd70be942c3a57a299c8acc488e86
|
|
BLAKE2b-256 checksum How to use checksums |
edc98844510ec6a9846d2330dc2de987adcff37d1a9c863676df584a4198a656
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|