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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file westcott-0.2.2.tar.gz.
File metadata
- Download URL: westcott-0.2.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63e01b08171422a2c637059bfe60fd4e28c8c659dc154aa33fb687e3b9cc7934
|
|
| MD5 |
770b0c0e4667ce966c74f1ebbeb266a8
|
|
| BLAKE2b-256 |
d97a83ddfed280b4ce844035fcf977b990950d87ef885e9b7ecf18259241b7d2
|
File details
Details for the file westcott-0.2.2-py3-none-any.whl.
File metadata
- Download URL: westcott-0.2.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44b92a73acd1161f2812b15b904acf13909adee9928a346baccc433bda90441e
|
|
| MD5 |
b091b5ae14ccdb159e017aacb65d1712
|
|
| BLAKE2b-256 |
24cc45065b58854e2d911c4f216eb828533575f52b0674240a082a3dd96ddf43
|