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 installation.sh script at the terminal command line of the project directory:

$ git clone https://github.com/DMatters/WestcottFactors.git
$ cd Westcott
$ sh installation.sh

As an alternative the project can also be installed via pip since it is being concurrently maintained on the Test instance of the Python Package Index repository https://test.pypi.org/project/westcott/

pip install -i https://test.pypi.org/simple/ westcott

Testing

A suite of Python modules containing unit tests has been developed for this project. These unit tests are located in the tests folder. 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 provided in the notebooks folder 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.0.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.0-py3-none-any.whl (119.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: westcott-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 284b43117d1577ef95138a95261ba2a72468ceb8e72dd3d49ffd8036f875310e
MD5 e6934cabb2caacc806da657cb8a710a8
BLAKE2b-256 ea7df3a8a435fa41aaf4b0081421c6f6a156488fac09e6d2b7f546d507aa9483

See more details on using hashes here.

File details

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

File metadata

  • Download URL: westcott-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9851fbde051d2927f2ec2d5bbf118278f126dd4ba7648346ece1dcf7ede7d4d2
MD5 20ef8e37e6a947151d3fdd8e1fe6a611
BLAKE2b-256 056c1dd1f10af987ad5036d61bd2fc606b8132cd522cef4b72311cd52efc7755

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