sandy.sections.mf7 module

This module contains only two public functions:

  • read_mf7

  • write_mf7

Function read reads a MF7/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_mf7 writes a content object for a MF7/MT section into a string. MAT, MF, MT and line numbers are also added (each line ends with a ` `).

sandy.sections.mf7.read_mf7(tape, mat, mt)

Parse MAT/MF=MAT/7 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.mf7.write_mf7(sec)

Write MT section for MF7

Parameters:
sec‘dict’

Multiline string reproducing the content of a ENDF-6 section.

Returns:
str