endf6_plumbing
The endf_parserpy.utils.endf6_plumbing module implements
convenience functions for common operations on
dictionaries with ENDF-6 data,
as returned by the parsefile() method of the
EndfParserPy class.
- endf_parserpy.update_directory(endf_dic, parser=None, lines=None, read_opts=None)[source]
Update the ENDF directory in MF1/MT451.
- Parameters:
endf_dic (dict) – Dictionary of appropriate structure with ENDF-6 data.
parser (EndfParserBase) – An
EndfParserBaseinstancelines (list[str]) – A list of strings with the ENDF-6 formatted data corresponding to the data in
endf_dict. If this argument is provided, theparserargument will be ignored.read_opts (dict) – A dictionary with reading options provided as
read_optsargument overrides the reading options of theEndfParserBaseinstance.
- endf_parserpy.utils.endf6_plumbing.set_description(endf_dic, text)[source]
Set the description in the MF1/MT451 section.
Updates the
DESCRIPTIONvariable inendf_dic[1][451]and adjusts the corresponding counter variableNWD.
- endf_parserpy.utils.endf6_plumbing.get_description(endf_dic)[source]
Retrieve the description from MF1/MT451 section.