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.1.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.1-py3-none-any.whl (6.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nucleardatapy-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a8f6a44bff5a3cd6301618b5dd4c1ea0d54fa0555f07e6912bac4fbb231054ee
MD5 f4dd3355a0078eebf3ef1742223b0a68
BLAKE2b-256 4b14277a133d4dcf231f361618c7236c1998bc9ce5baf67f8bf13963e11ee548

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nucleardatapy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c390cfeeffe646946273d0388fa39ff6822c387c7ccc980976c772480f2960
MD5 75589c021fcf7eb454c0d836a9e9fe30
BLAKE2b-256 640f0675526161667565bcb19951d850f3faf74286381394135116ee2697d975

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