f4enix.output.meshinfo.MeshInfoFile#
- class f4enix.output.meshinfo.MeshInfoFile(info: dict[int, MeshInfo | MeshInfoCyl])#
Bases:
objectParser of the meshinfo D1S-UNED file
- Parameters:
info (dict[int, MeshInfo | MeshInfoCyl]) – contains the info related to the various meshes
- Variables:
info (dict[int, MeshInfo | MeshInfoCyl]) – contains the info related to the various meshes
Examples
parse a meshinfo file
>>> from f4enix.output.meshinfo import MeshInfoFile ... mesh_info = MeshInfoFile.from_file('meshinfo')
Methods
__init__(info)Parser of the meshinfo D1S-UNED file
from_file(meshinfofile)Reads the meshinfo file and returns a dictionary where the keys are the mesh_id and the value are instances of DataMass.
- classmethod from_file(meshinfofile: PathLike) MeshInfoFile#
Reads the meshinfo file and returns a dictionary where the keys are the mesh_id and the value are instances of DataMass.
- Parameters:
meshinfofile (os.PathLike) – path to the file to be parsed
- Returns:
parsed meshinfo file
- Return type: