sandy.sections.mf8 module
This module contains only two public functions:
read_mf8
write_mf8
Function read reads a MF8/MT section from a string and produces a content object with a dictionary-like structure. The content object can be accessed using most of the keywords specified in the ENDF6 manual for this specific MF section.
Function write_mf8 writes a content object for a MF8/MT section into a string. MAT, MF, MT and line numbers are also added (each line ends with a ` `).
- sandy.sections.mf8.read_mf8(tape, mat, mt)
Parse MAT/MF=8/MT section from sandy.Endf6 object and return structured content in nested dcitionaries.
- Parameters:
- tapesandy.Endf6
endf6 object containing requested section
- matint
MAT number
- mtint
MT number
- Returns:
- dict
Content of the ENDF-6 tape structured as nested dict.
- sandy.sections.mf8.write_mf8(sec)
Write MT section for MF8
- Parameters:
- sec‘dict’
Multiline string reproducing the content of a ENDF-6 section.
- Returns:
- str