Skip to main content

Radiation dose from close contact patterns with radioactive patients.

Project description

DOI

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.4
  • scipy >= 1.7.3
  • matplotlib >= 3.5.0
  • pandas >= 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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glowgreen-0.1.1.tar.gz (109.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glowgreen-0.1.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file glowgreen-0.1.1.tar.gz.

File metadata

  • Download URL: glowgreen-0.1.1.tar.gz
  • Upload date:
  • Size: 109.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for glowgreen-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8f99ca8afa85329e0d6106e9c85a7304d620062d3dd90b4eb04fbe0b05b729ea
MD5 2f89fb43b7862e40142f21bea133b00d
BLAKE2b-256 962b8ddec368c1177e4cb077b5c1dee600a22bdd1235a703e6a85f6093e8f2b2

See more details on using hashes here.

File details

Details for the file glowgreen-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: glowgreen-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for glowgreen-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f36b40d950460307fdebf077e8d627cf43dd70be942c3a57a299c8acc488e86
MD5 3d5f3e96172fd0769b4e8f026e08513d
BLAKE2b-256 edc98844510ec6a9846d2330dc2de987adcff37d1a9c863676df584a4198a656

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page