We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab00bb commit f357fedCopy full SHA for f357fed
Simulation.py
@@ -742,12 +742,15 @@ def _prepare_monitors(self):
742
# define a slice monitor
743
from PyHEADTAIL.monitors.monitors import SliceMonitor
744
745
+ kwargs = {}
746
+ if hasattr(pp, 'slice_stats_to_store'):
747
+ kwargs['slice_stats_to_store'] = pp.slice_stats_to_store
748
self.slice_monitor = SliceMonitor(
749
"slice_evolution_%02d" % self.SimSt.present_simulation_part,
750
pp.N_turns,
751
self.slicer,
752
{"Comment": "PyHDTL simulation"},
- write_buffer_every=write_buffer_every,
753
+ write_buffer_every=write_buffer_every, **kwargs
754
)
755
756
def _setup_multijob_mode(self):
0 commit comments