montepy.data_inputs.data_parser module#

montepy.data_inputs.data_parser.parse_data(input)#

Parses the data input as the appropriate object if it is supported.

Changed in version 0.2.0: Removed the comment parameter, as it’s in the syntax tree directly now.

Parameters:

input (Input) – the Input object for this Data input

Returns:

the parsed DataInput object

Return type:

DataInput