Simple Cross Sections – pyne.dbgen.simple_xs

This module adds simple cross section data from KAERI to nuc_data.h5.

All functionality may be found in the simple_xs module:

from pyne.dbgen import simple_xs

Simple Cross Section API

This module provides a way to grab and store simple cross sections from KAERI.

pyne.dbgen.simple_xs.get_xs_from_file(filename, eng, chan)[source]

Parses out a cross section from a KAERI file.

Parameters
filenamestr

Local path to a KAERI neutron cross section summary html file.

engstr

Energy flag to find this cross section for. (Must be key of simple_xs_energy dictionary).

chanstr

Cross section (interaction channel) to find. (Must be key of simple_xs_channels dict).

Returns
datafloat

Microscopic cross section in [barns].

pyne.dbgen.simple_xs.grab_kaeri_simple_xs(build_dir='')[source]

Grabs the KAERI files needed for the simple cross sections table, if not already present.

Parameters
build_dirstr

Major directory to place html files in. ‘KAERI/’ will be appended.

pyne.dbgen.simple_xs.make_simple_xs(args)[source]

Controller function for adding basic cross section data.

pyne.dbgen.simple_xs.make_simple_xs_tables(nuc_data, build_dir='')[source]

Make the simple cross section tables.

Parameters
nuc_datastr

Path to nuclide data file.

build_dirstr

Directory to place html files in.

pyne.dbgen.simple_xs.parse_simple_xs(build_dir='')[source]

Builds and returns a dictionary from cross-section types to nuclides.