Skip to content

Commit 0d9ce1c

Browse files
authored
Merge pull request #177 from scipp/workflow-collection
Add batch_processor and batch_compute for batch reduction
2 parents fccaee0 + 0297493 commit 0d9ce1c

File tree

16 files changed

+1682
-654
lines changed

16 files changed

+1682
-654
lines changed

docs/user-guide/amor/amor-reduction-advanced.ipynb

Lines changed: 606 additions & 0 deletions
Large diffs are not rendered by default.

docs/user-guide/amor/amor-reduction.ipynb

Lines changed: 58 additions & 268 deletions
Large diffs are not rendered by default.

docs/user-guide/amor/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
maxdepth: 1
66
---
77
amor-reduction
8+
amor-reduction-advanced
89
compare-to-eos
910
workflow-widget
1011
```

src/ess/amor/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
NeXusComponent,
1818
NeXusDetectorName,
1919
ProtonCurrent,
20+
RawChopper,
2021
RawSampleRotation,
2122
RunType,
2223
SampleRotation,
@@ -29,7 +30,6 @@
2930
ChopperFrequency,
3031
ChopperPhase,
3132
ChopperSeparation,
32-
RawChopper,
3333
)
3434

3535

src/ess/amor/normalization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def evaluate_reference_at_sample_coords(
8888
ref = ref.transform_coords(
8989
(
9090
"Q",
91+
"theta",
9192
"wavelength_resolution",
9293
"sample_size_resolution",
9394
"angular_resolution",

src/ess/amor/types.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,4 @@ class ChopperSeparation(sciline.Scope[RunType, sc.Variable], sc.Variable):
2727
"""Distance between the two choppers."""
2828

2929

30-
class RawChopper(sciline.Scope[RunType, sc.DataGroup], sc.DataGroup):
31-
"""Chopper data loaded from nexus file."""
32-
33-
3430
GravityToggle = NewType("GravityToggle", bool)

src/ess/reflectometry/__init__.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212

1313
from . import conversions, corrections, figures, normalization, orso
1414
from .load import load_reference, save_reference
15+
from .tools import (
16+
BatchProcessor,
17+
batch_compute,
18+
batch_processor,
19+
scale_for_reflectivity_overlap,
20+
)
1521

1622
providers = (
1723
*corrections.providers,
@@ -31,9 +37,18 @@
3137

3238
del importlib
3339

34-
3540
__all__ = [
41+
"BatchProcessor",
42+
"__version__",
43+
"batch_compute",
44+
"batch_processor",
45+
"conversions",
46+
"corrections",
3647
"figures",
3748
"load_reference",
49+
"normalization",
50+
"orso",
51+
"providers",
3852
"save_reference",
53+
"scale_for_reflectivity_overlap",
3954
]

0 commit comments

Comments
 (0)