From c855f5422d1ba86f56981dfdf51e042e0e7e4368 Mon Sep 17 00:00:00 2001 From: Gregory Tucker Date: Fri, 27 Feb 2026 11:27:19 +0100 Subject: [PATCH] [WIP] transformation resolution for time-dependent BIFROST --- src/ess/reduce/nexus/workflow.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ess/reduce/nexus/workflow.py b/src/ess/reduce/nexus/workflow.py index 7373a466..e5369ae8 100644 --- a/src/ess/reduce/nexus/workflow.py +++ b/src/ess/reduce/nexus/workflow.py @@ -334,6 +334,12 @@ def to_transformation( sizes=t.sizes, coord=time, index=interval.value ) t.value = _time_filter(t.value[idx]) + elif start is None and stop is None: + # FIXME: This is probably not the right way to do this, but is sufficient + # for BIFROST's workflow when the NeXus file contains time-dependent + # depends-on chains since it uses the *relative* positions of + # detectors and analyzers, which are constant during a measurement + t.value = _time_filter(t.value['time', 0]) else: t.value = _time_filter(t.value['time', interval.value])