Skip to content

openmc-data-storage/material_xs_plotter

Repository files navigation

This repository contains part of the source code for neutron cross section plotting website xsplot.com which allows neutron cross sections for materials to be plotted.

This repository contains:

  • A Python Plotly Dash based GUI 🐍
  • A Dockerfile that provides the hosting enviroment 🐳

Run locally

You can view the hosted version of this repositoy here xsplot.com. However you might want to host your own version locally.

To host your own local version of xsplot.com you will need Docker installed and then can build and run the Dockerfile with the following commands.

First clone the repositoy

git clone https://github.com/openmc-data-storage/material_xs_plotter.git

Then navigate into the repositoy folder

cd material_xs_plotter

Then build the docker image

docker build -t material_xs_plotter .

Then run the docker image

docker run --network host -t material_xs_plotter

The URL of your locally hosted version should appear in the terminal, copy and paste this URL into a web browser address bar.

Maintenance

Pushing to the main branch of this repository triggers an automatic rebuild and deployment of the new code using Google Cloud build at the xsplot.com

The website makes use of a few other packages to process the nuclear data: