montepy.input_parser.input_syntax_reader.read_front_matters#
- montepy.input_parser.input_syntax_reader.read_front_matters(fh, mcnp_version)#
Reads the beginning of an MCNP file for all of the unusual data there.
This is a generator function that will yield multiple
MCNP_Input
instances.Warning
This function will move the file handle forward in state.
Warning
This function will not close the file handle.
- Parameters:
fh (MCNP_InputFile) – The file handle of the input file.
mcnp_version (tuple) – The version of MCNP that the input is intended for.
- Returns:
an instance of the Title class, and possible an instance of a Message class
- Return type: