This module provides tools for manipulating bright-namespace level configuration variables which may affect all fuel cycle components.
All functionality may be found in the bright_config module:
import bright.bright_config
A class whose attributes expose C++ bright namespace variables. The bright_conf object is a singleton instance of this class.
Overide for directory path which is (by default) read in from an environmental variable of the same name.
Set of nuclides (in zzaaam form, see pyne) which components should track.
Array nuclides which determines the order of track_nucs.
Determines the at which to print messages. Lower numbers mean fewer messages (default 0).
Boolean flag for whether to write binary HDF5 output.
Boolean flag for whether to write flat text file output.
Boolean flag for whether to write binary HDF5 output.
Path to outputh file.
Handles bright initialization. Reads in the ‘BRIGHT_DATA’ environment variable.
This convience function tries to load the track_nucs set from a dataset in an HDF5 file. The dataset must be of integer type. String-based nuclide names are currently not supported.
Parameters : | filename : str
dataset : str, optional
clear : bool, optional
|
---|
Notes
If the dataset argument is not provided or empty, the function tries to load from various default datasets in the following order:
"/track_nucs"
"/Isos2Track"
"/isostrack"
"/IsosTrack"
"/isotrack"
"/IsoTrack"
"/ToIso"
"/ToIsos"
"/ToIso_zz"
"/ToIso_MCNP"
"/FromIso"
"/FromIsos"
"/FromIso_zz"
"/FromIso_MCNP"
This convience function tries to load the track_nucs set from a text file. The nuclide names may use any naming convention. Mixing different conventions in the same file is allowed. Whitespace is required between isotopic names.
Parameters : | filename : str
clear : bool
|
---|
This function sorts the track_nucs and places the result in track_nucs_order.