montepy.input_parser.mcnp_input.ParsingNode#

class montepy.input_parser.mcnp_input.ParsingNode(input_lines)#

Bases: ABC

Object to represent a single coherent MCNP input, such as an input.

Parameters:

input_lines (list) – the lines read straight from the input file.

Methods:

format_for_mcnp_input(mcnp_version)

Creates a string representation of this input that can be written to file.

Attributes:

input_lines

The lines of the input read straight from the input file

input_text

abstractmethod format_for_mcnp_input(mcnp_version)#

Creates a string representation of this input that can be written to file.

Parameters:

mcnp_version (tuple) – The tuple for the MCNP version that must be exported to.

Returns:

a list of strings for the lines that this input will occupy.

Return type:

list

property input_lines#

The lines of the input read straight from the input file

Return type:

list

property input_text#