montepy.input_parser.mcnp_input.Title#

class montepy.input_parser.mcnp_input.Title(input_lines, title)#

Bases: ParsingNode

Object to represent the title for an MCNP problem

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

  • title (str) – The string for the title of the problem.

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

title

The string of the title set for this problem

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#
property title#

The string of the title set for this problem

Return type:

str