pymcnp.inp.ptrac.filter Subpackage

AST Classes

Entry Class

class pymcnp.inp.ptrac.filter.Entry(lower: str | int | float | Real, upper: str | int | float | Real, variable: str | String = None)

Represents INP entry elements.

classmethod from_mcnp(source: str)

Generates Entry from INP.

Parameters:

sourceEntry for INP.

Returns:

Entry.

Raises:

InpError – SYNTAX_OPTION.

to_mcnp()

Generates INP from Entry.

Returns:

INP for Entry.

property lower: Real

Lower bound for filtering

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property upper: Real

Upper bound for filtering

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError

property variable: String

Variable name for PBL derived structure

Raises:
  • InpError – SEMANTICS_OPTION.

  • TypeError