Allow wavelength filtering for raw plots in events2histogram
Some checks failed
Release / build-ubuntu-latest (push) Failing after 2s
Release / build-windows (push) Has been cancelled
Release / release (push) Has been cancelled

This commit is contained in:
2025-11-04 14:24:25 +01:00
parent c073fae269
commit dfb5aa319f
2 changed files with 6 additions and 3 deletions

View File

@@ -2,5 +2,5 @@
Package to handle data redction at AMOR instrument to be used by __main__.py script.
"""
__version__ = '3.0.3'
__date__ = '2025-10-28'
__version__ = '3.0.4'
__date__ = '2025-11-04'

View File

@@ -58,6 +58,9 @@ class E2HReduction:
if self.config.reduction.plot==E2HPlotSelection.Raw:
# Raw implies fast caculations
self.config.reduction.fast = True
if not self.config.experiment.is_default('lambdaRange'):
# filtering wavelength requires frame analysis
self.config.reduction.fast = False
if not self.config.reduction.fast or self.config.reduction.plot in NEEDS_LAMDA:
from . import event_analysis as ea
@@ -84,7 +87,7 @@ class E2HReduction:
# perform corrections for tof if not fast mode
self.event_actions |= eh.TofTimeCorrection(self.config.experiment.incidentAngle==IncidentAngle.alphaF)
# select needed actions in depenence of plots
if self.config.reduction.plot in NEEDS_LAMDA:
if self.config.reduction.plot in NEEDS_LAMDA or not self.config.experiment.is_default('lambdaRange'):
self.event_actions |= ea.MergeFrames()
self.event_actions |= ea.AnalyzePixelIDs(self.config.experiment.yRange)
self.event_actions |= eh.TofTimeCorrection(self.config.experiment.incidentAngle==IncidentAngle.alphaF)