Git Product home page Git Product logo

nudel's Introduction

๐Ÿ nudel โ€“ Nuclear Data Extraction Library

License

Nudel is a parser for the Evaluated Nuclear Structure Data File (ENSDF) format implemented in Python.

Introduction

ENSDF provides recommended nuclear structure and decay information. The data are organized in a special data format that is described here. Nudel is an attempt to read those files such that the relevant information can be easily accessed using Python, without having to worry about the details of the (complicated) data format. The specification is quite extensive, and thus, the present approach is currently limited to only a few important quantities. Especially cross-references and comments are not yet properly resolved.

Obtaining nuclear datasets

ENSDF

To use nudel, a copy of the ENSDF is currently required. It can be obtained here. Extract the archive to $XDG_DATA_HOME/ensdf. Usually, this path corresponds to ~/.local/share/ensdf. You should end up with files such as ~/.local/share/ensdf/ensdf.208, etc. Alternatively, you can set $ENSDF_PATH to point to a different directory for the data.

Requirements

  • python>=3.7
  • pytest (optional, only for unit tests)

No further libraries are required!

Usage

This is a minimal usage example, documentation will be improved in a future version:

from nudel import Nuclide

molybdenum94 = Nuclide(94, 42)

Examples

Notebooks with usage examples can be found in the examples/notebooks directory.

License

Copyright ยฉ 2019

O. Papst

This code is distributed under the terms of the GNU General Public License v3 or later. See the COPYING file for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.