Skip to content

Commit 5c41f02

Browse files
committed
Do not use ess.reduce's ScatteringRunType
This avoid stray types such as VanadiumRun appearing in workflows. This "bug" happened because initially ScatteringRunType only included runs relevant for SANS, which was a bad assumption. There was no harm from this, except for unused nodes in graphs.
1 parent 3bb19a2 commit 5c41f02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ess/sans/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
NeXusMonitorName = reduce_t.NeXusName
2929
NeXusComponent = reduce_t.NeXusComponent
3030
SampleRun = reduce_t.SampleRun
31-
ScatteringRunType = reduce_t.ScatteringRunType
3231
Transmission = reduce_t.TransmissionMonitor
3332
TransmissionRun = reduce_t.TransmissionRun
3433

@@ -44,6 +43,8 @@
4443
TransmissionRun[SampleRun],
4544
TransmissionRun[BackgroundRun],
4645
)
46+
ScatteringRunType = TypeVar('ScatteringRunType', BackgroundRun, SampleRun)
47+
4748

4849
UncertaintyBroadcastMode = _UncertaintyBroadcastMode
4950

0 commit comments

Comments
 (0)