A toolkit for nuclear data processing and meta-analyses.
Project description
The toolkit nucleardatapy
Purpose:
The purpose of this toolkit is to provide an easy access to theoretical or experimental or observational data and allows meta-analyses in a straightforward way.
This python toolkit is designed to provide:
- microscopic calculations in nuclear matter,
- phenomenological predictions in nuclear matter,
- experimental data for finite nuclei,
- astrophysical observations and theoretical predictions.
All data are provided with their reference, so when using these data in a scientific paper, reference to data should be provided explicitly. The reference to this toolkit could be given, but it should not mask the reference to the original source of data.
Installation of the toolkit:
To install the toolkit, launch:
$ pip install nucleardatapy
This installs the latest version of the toolkit.
If the github repository is downloaded, one can also install the toolkit using
$ pip install -e .
from within the root folder of the nucleardatapy directory.
Test the python toolkit
A set of tests can be easily performed. They are stored in tests/ folder.
Launch:
$ bash run_tests.sh
Short introduction to the toolkit:
The call of the toolkit in python code is performed in the usual way:
import nucleardatapy as nuda
The list of functions and global variables available in the toolkit can be printed from the following instruction:
print(dir(nuda))
A detailed view of the function can be obtained in the following way
print(help(nuda))
The toolkit classes instantiate objects that contain all the information available. For instance, the following command
mass = nuda.astro.setupMasses()
instantiates the object mass with the mass of PSR J1614-2230 which is the default case. All the properties of this object can be listed in the following way:
mass.__dict__
Documentation
The documentation for the toolkit can be found here: https://nucleardatapy.readthedocs.io/en/latest/index.html. The documentation is also available in the docs/ folder and can be built using the following command:
sphinx-build -b html docs docs/build_html
The pdf version of the documentation can be found by clicking this link.
Tutorials
The tutorials to get started with nucleardatapy toolkit can be found here: https://jeromemargueron.github.io/nucleardatapy/landing.html. The tutorials are written using jupyter notebook and can be tried on your computer by downloading them or by using google-colab. In the github repository, the tutorials are available in the book/notebooks folder.
Use nucleardatapy python toolkit
The GitHub folder nucleardatapy/nucleardatapy_samples/ contains a lot of examples on how to use the function and to draw figures. They are all python scripts that can be launched with python3. For instance, you can grab these samples anywhere in your computer and try:
$ python3 matter_setupMicro_script.py
There are also tutorials that can be employed to learn how to use the different functions in the toolkit.
Get started
Here is an example to obtain microscopic results for APR equation of state:
import nucleardatapy as nuda
# Instantiate a micro object
micro = nuda.matter.setMicro( model = '1998-VAR-AM-APR')
# print outputs
micro.print_outputs( )
More examples are shown in the associated paper[Give reference here], as well as in the sample folder or tutorials as previously written.
Contributing
The file how_to_contribute.md details how contributors could join our team or share their results.
License
CC BY-NC-ND 4.0
Report issues
Issues can be reported using GitHub Issues.
Thanks
A special thanks to all contributors who accepted to share their results in this toolkit.
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 nucleardatapy-1.0.0.tar.gz.
File metadata
- Download URL: nucleardatapy-1.0.0.tar.gz
- Upload date:
- Size: 27.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb742dc10bda9060d9af384da45a4222bc4ffaee1a207eee822239bc2e41e37
|
|
| MD5 |
0aac27dbb0168b4dac823e54c35ed930
|
|
| BLAKE2b-256 |
0052c61519bc9cef1c2b637bb72ddc8b5a3651c89c688416dbe8c5fc5610d313
|
File details
Details for the file nucleardatapy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nucleardatapy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb008adc027b677bed9846067b1e5936cff15f273b8bf440e0b24b453cb6dd5f
|
|
| MD5 |
4559bc5bb6c74a793b8e9e36fc379d9c
|
|
| BLAKE2b-256 |
b0a8a68fabd927c5c5b864177b22681f51fba57572e68dda7100413bb559d11f
|