Skip to content

Commit dfb5aa3

Browse files
committed
Allow wavelength filtering for raw plots in events2histogram
1 parent c073fae commit dfb5aa3

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

eos/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Package to handle data redction at AMOR instrument to be used by __main__.py script.
33
"""
44

5-
__version__ = '3.0.3'
6-
__date__ = '2025-10-28'
5+
__version__ = '3.0.4'
6+
__date__ = '2025-11-04'

eos/reduction_e2h.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def prepare_actions(self):
5858
if self.config.reduction.plot==E2HPlotSelection.Raw:
5959
# Raw implies fast caculations
6060
self.config.reduction.fast = True
61+
if not self.config.experiment.is_default('lambdaRange'):
62+
# filtering wavelength requires frame analysis
63+
self.config.reduction.fast = False
6164

6265
if not self.config.reduction.fast or self.config.reduction.plot in NEEDS_LAMDA:
6366
from . import event_analysis as ea
@@ -84,7 +87,7 @@ def prepare_actions(self):
8487
# perform corrections for tof if not fast mode
8588
self.event_actions |= eh.TofTimeCorrection(self.config.experiment.incidentAngle==IncidentAngle.alphaF)
8689
# select needed actions in depenence of plots
87-
if self.config.reduction.plot in NEEDS_LAMDA:
90+
if self.config.reduction.plot in NEEDS_LAMDA or not self.config.experiment.is_default('lambdaRange'):
8891
self.event_actions |= ea.MergeFrames()
8992
self.event_actions |= ea.AnalyzePixelIDs(self.config.experiment.yRange)
9093
self.event_actions |= eh.TofTimeCorrection(self.config.experiment.incidentAngle==IncidentAngle.alphaF)

0 commit comments

Comments
 (0)