Skip to main content

A toolkit for nuclear data processing and analysis.

Project description

The toolkit nucleardatapy

Purpose:

The purpose of this toolkit is to simply the access to data, that can be theoretical data or experimental ones. All data are provided with their reference, so when using these data in a scientific paper, reference to data should be provided explicitely. The reference to this toolkit could be given, but it should not mask the reference to data.

This python toolkit is designed to provide:

  1. microscopic calculations in nuclear matter,
  2. phenomenological predictions in nuclear matter,
  3. experimental data for finite nuclei.

Installation of the toolkit:

To install the toolkit, launch:

$ pip install nucleardatapy

This installs the lattest version of the toolkit.

Now everything is done about the installation.

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 principle of the toolkit is that it instantiates objects that contain all the information available. For instance, the following command

mass = nuda.astro.setupMasses()

instantiate the object mass with the default mass of pulsars. In this case, it is the mass of PSR J1614-2230. All the properties that this object provide can be listed in the following way:

mass.__dict__

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. The tutorials are written for jupyter notebook.

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.

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

nucleardatapy-0.2.1.tar.gz (27.2 MB view details)

Uploaded Source

Built Distribution

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

nucleardatapy-0.2.1-py3-none-any.whl (6.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nucleardatapy-0.2.1.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

Hashes for nucleardatapy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e621cbc326ea7368297bd57a71371d20c877d37679326ec26d871757235d90cc
MD5 4ee847412581891935e3f5ef07ce4e49
BLAKE2b-256 7b48d30de2d7449a4fd7c3dac647d7659534b34afadc4b2de0d3b2721688c9b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nucleardatapy-0.2.1-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

Hashes for nucleardatapy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fef9f5097babba0bf4943f7fb158f23c909e2319d8ae384c30b1244dc48eab
MD5 d0bd76c3ddd136c6be4493e992901690
BLAKE2b-256 c5ce2b4b6b74f8552a36fc8f036166993525ec82de8121ccb80eeb2043e12192

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