Skip to content

A Python package for creating publication quality plots for neutron / photon / particle spectrum

License

Notifications You must be signed in to change notification settings

fusion-energy/spectrum_plotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e84caaa Â· Mar 21, 2022

History

84 Commits
Mar 2, 2022
Nov 17, 2021
Mar 2, 2022
Oct 27, 2021
Oct 24, 2021
Oct 30, 2021
Oct 14, 2021
Mar 21, 2022
Nov 3, 2021
Nov 15, 2021

Repository files navigation

N|Python

CI with install

Upload Python Package

Spectrum Plotter

A Python package for creating standard plots for neutron / photon / particle spectrum

Installation

To make use of this package you wll need OpenMC installed. See the instructions here for installing OpenMC.

pip install spectrum_plotter

Usage

There are two main functions for plotting spectrum:

plot_spectrum_from_values() - allows users to pass in the tally via a dictionary of tuples where each tuple contains x,y and optionally y_error values as numpy arrays.

plot_spectrum_from_tally() - allows users to pass in an OpenMC tally and plot the result. Units can be automatically scaled,normalised and converted.

👉 Examples

About

A Python package for creating publication quality plots for neutron / photon / particle spectrum

Topics

Resources

License

Citation

Stars

Watchers

Forks

Packages

No packages published

Languages