Skip to content
Snippets Groups Projects
Commit cafeb230 authored by David Hammer's avatar David Hammer
Browse files

Enable reconfiguration of preview.maxRate

parent 62b3ee29
No related branches found
No related tags found
1 merge request!12Snapshot: field test deployed version as of end of run 202201
......@@ -379,6 +379,13 @@ class DetectorAssembler(TrainMatcher.TrainMatcher):
self.log.WARN(f"Couldn't figure out index for source {source}")
return 0
def preReconfigure(self, conf):
super().preReconfigure(conf)
if conf.has("preview.maxRate"):
self._throttler = utils.SkippingThrottler(
1 / conf["preview.maxRate"]
)
def downsample_2d(arr, factor, reduction_fun=np.nanmax):
"""Generalization of downsampling from FemDataAssembler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment