PathGroup#
- class montepy.data_inputs.tally.PathGroup(levels: list[FlatGroup], node: SyntaxNodeBase | None = None)#
Bases:
TallyGroupA universe-path group for repeated-structures tallies.
Added in version 1.6.0b2.
- Parameters:
levels (
list[FlatGroup]) – Levels in the<chain, innermost (scored) first.node (syntax_node.SyntaxNodeBase | None)
Methods:
inside(*cells_or_surfaces[, lattice])Append an outer level and return self for chaining.
update_pointers(container, *, is_cell, tally)Resolve the innermost (scored) level's numbers into live objects.
Attributes:
The innermost (scored) level's resolved objects.
FlatGroup levels, innermost (scored) first.
The syntax node for this path group.
The innermost (scored) level's numbers as originally read or added.
- inside(*cells_or_surfaces: Cell | Surface, lattice: list[TypeAliasForwardRef('numbers.Integral')] | None = None) PathGroup#
Append an outer level and return self for chaining.
- update_pointers(container, *, is_cell: bool, tally: Tally) None#
Resolve the innermost (scored) level’s numbers into live objects.
Outer (containment) levels are deliberately left unresolved – they’re never “in” the tally (see
PathGroup.__contains__), so there’s nothing to gain by tracking live renumbers for them.Added in version 1.6.0b4.
- property cells_or_surfaces#
The innermost (scored) level’s resolved objects.
Per the MCNP manual’s tally-specification chapter, only the leftmost/innermost entry in a
<-chain is actually tallied; every outer level is a containment cell (filled with a universe) used only to select which occurrence is meant, never itself scored – so only the innermost level’s objects count as “what this tally covers”.Added in version 1.6.0b4.
- property levels#
FlatGroup levels, innermost (scored) first.
- property node#
The syntax node for this path group.
Added in version 1.6.0b3.
- property old_numbers#
The innermost (scored) level’s numbers as originally read or added.
Added in version 1.6.0b4.