Skip to main content

Calculations of Westcott g-factors.

Project description

Westcott g-factor

Python package for calculating Westcott g-factors, which adjust thermal-neutron capture cross sections for non-1/v behavior at low energies. These are important in Neutron Activation Analysis (NAA) and Prompt Gamma-ray Activation Analysis (PGAA) when measuring nuclei that have low-energy resonances in their cross sections. Code calculates g-factors for Maxwellian neutron energy distributions and individual neutron source spectra, when available. A reference article describing this project is available on the arXiv [1].

Building and installation

This project can be built and installed by running the pip command in a Unix terminal:

$ pip install westcott

Alternatively, because this project is also maintained on GitHub, it can be installed by cloning the repository and running the installation script at the terminal command line of the project directory as described in README on the landing page.

Testing

A suite of Python modules containing unit tests has been developed for this project. These unit tests are distributed with the project on GitHub. This project has been successfully built and tested against multiple virtual Python environments from Python-3.6 to Python-3.13. To run the suite and ensure they work with the local Python environment, run tox in the project directory where the tox.ini file is also located:

$ tox -r

This project has the following Python-package dependencies: numpy, scipy, pandas, and pytest. The session is automatically started after building against the required Python environment.

Running the software

Following installation, the westcott scripts can be ran from any location by importing the library and making an instance of the Westcott class:

$ python
>>> import westcott
>>> gw = westcott.Westcott()

Various Jupyter Notebooks are also distributed with the project on GitHub. These Jupyter Notebooks can be used to demonstrate workflows and methods for interacting with the functionality available to the library.

Docstrings

Supporting docstrings for the westcott methods are currently under development.

References

[1] D.A. Matters, A.M. Hurst, T. Kawano, "Westcott g Factors Extended to Arbitrary Neutron Energy Spectra", https://doi.org/10.48550/arXiv.2602.05995

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

westcott-0.2.1.tar.gz (118.7 MB view details)

Uploaded Source

Built Distribution

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

westcott-0.2.1-py3-none-any.whl (119.2 MB view details)

Uploaded Python 3

File details

Details for the file westcott-0.2.1.tar.gz.

File metadata

  • Download URL: westcott-0.2.1.tar.gz
  • Upload date:
  • Size: 118.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for westcott-0.2.1.tar.gz
Algorithm Hash digest
SHA256 36a0a2bd1ee84d4cdc48d833c19361ee05602e703f0ea6a587a0cdc3790ae39a
MD5 b43f15bc0a8473efc4377888acb6ba18
BLAKE2b-256 77ff86b6c67f590b0a1146c4f0566a2d4f3fd0af175c329f77fcb0f886d95d2d

See more details on using hashes here.

File details

Details for the file westcott-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: westcott-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 119.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for westcott-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 281334131813057d7aa4653f61316418bd7f5c22849f1d33bd27133b28626b9e
MD5 28b7f25703e1942d13d90236d8cf457c
BLAKE2b-256 95313f988a97fce8615b2d9677dbe7ac52862a72e450af0b04ffe0ccbbdaedcf

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