Skip to main content

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:

  1. microscopic calculations in nuclear matter,
  2. phenomenological predictions in nuclear matter,
  3. experimental data for finite nuclei,
  4. 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

nucleardatapy-1.0.2.tar.gz (43.6 MB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nucleardatapy-1.0.2.tar.gz
  • Upload date:
  • Size: 43.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for nucleardatapy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c554983da25482368239b340ca6287e499d8597e07f9a1ff8a7891a6a26da886
MD5 bd0b7d8e18d85057fe77759069d5a1b5
BLAKE2b-256 6ae83afa42b9e8a4e604ad2753f4f55e3e3fa5ca418c2ad62e684f43b7e935e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nucleardatapy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for nucleardatapy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d8f57cf056696f39ee45fe4d516bc4eae7a2461c9aba5d83c2012b499116d61
MD5 2693069a26297d9366293330da4216f3
BLAKE2b-256 9d2898c38cb6c7e85b8a5a4221f566fe9b66c1ae41dc95a9ad9a7646eb652988

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