EndfMaterialPath
- class endf_parserpy.EndfMaterialPath(pathspec)[source]
A material selector followed by an
EndfPath.A material-qualified path has the form
material/MF/MT/field.... The leading material selector picks one material of a tape, and the remaining/MF/MT/field...part is an ordinaryEndfPathaddressing data within that material. That part may be truncated: a path may stop at the material, at a section (material/MF/MT), or reach down to an individual field.The material selector takes one of three forms:
MATselects the material with the given MAT number, e.g.2925. Resolving this form fails with anAmbiguousMaterialErrorwhen the MAT number is not unique, as it is on a PENDF tape.MAT#kselects thek-th material carrying that MAT number, e.g.9237#1. This disambiguates a repeated MAT number; the indexkis zero-based, so9237#0is the first occurrence.#kselects the material at tape positionk, e.g.#0for the first material on the tape. The indexkis zero-based.
- Parameters:
pathspec (str or EndfMaterialPath) – The path. For example,
"9237#1/3/2/TEMP"addresses theTEMPfield of the MF=3/MT=2 section of the second material with MAT 9237,"#0/1/451"the whole MF=1/MT=451 section of the first material on the tape, and"2925/3/1"the MF=3/MT=1 section of the material with MAT 2925.
- mf, mt
The section addressed by the path, or
Noneif the path stops at material level.- Type:
int or None