Skip to content

Commit 2178566

Browse files
committed
TMCTally inherits from BaseTally
1 parent be5411d commit 2178566

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/openmc_fusion_benchmarks/uq/tmc_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import itertools
1010
import h5py
1111

12+
from ..tallies import BaseTally
13+
1214

1315
class TMCManager:
1416
def __init__(self, base_model: openmc.Model, perturbations: List[Callable],
@@ -571,7 +573,7 @@ def __repr__(self):
571573
return f"<TMCStatePoint: {n_realizations} TMC combinations, {n_tallies} tallies>"
572574

573575

574-
class TMCTally:
576+
class TMCTally(BaseTally):
575577
"""
576578
Wrapper for a single TMC tally providing an OpenMC Tally-like interface.
577579
@@ -586,9 +588,7 @@ class TMCTally:
586588
"""
587589

588590
def __init__(self, mean_da, mc_std_da=None, parent_ds=None):
589-
self._da = mean_da
590-
self._da_mc_std = mc_std_da
591-
self._parent_ds = parent_ds
591+
super().__init__(mean_da, mc_std_da=mc_std_da, parent_ds=parent_ds)
592592

593593
# Identify TMC dimensions: "perturbation" and "realization" for sequential, "perturbation_*" for matrix
594594
self._tmc_dims = [

0 commit comments

Comments
 (0)