Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/user-guide/dream/dream-advanced-powder-reduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
"\n",
"workflow[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n",
"workflow[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n",
"workflow[Filename[BackgroundRun]] = dream.data.simulated_empty_can()\n",
"workflow[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n",
"workflow[CalibrationFilename] = None\n",
"\n",
"workflow[MonitorFilename[SampleRun]] = dream.data.simulated_monitor_diamond_sample()\n",
"workflow[MonitorFilename[VanadiumRun]] = dream.data.simulated_monitor_vanadium_sample()\n",
"workflow[MonitorFilename[BackgroundRun]] = dream.data.simulated_monitor_empty_can()\n",
"workflow[MonitorFilename[EmptyCanRun]] = dream.data.simulated_monitor_empty_can()\n",
"workflow[CaveMonitorPosition] = sc.vector([0.0, 0.0, -4220.0], unit=\"mm\")\n",
"\n",
"workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux\n",
Expand Down Expand Up @@ -174,12 +174,12 @@
"\n",
"workflow[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n",
"workflow[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n",
"workflow[Filename[BackgroundRun]] = dream.data.simulated_empty_can()\n",
"workflow[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n",
"workflow[CalibrationFilename] = None\n",
"\n",
"workflow[MonitorFilename[SampleRun]] = dream.data.simulated_monitor_diamond_sample()\n",
"workflow[MonitorFilename[VanadiumRun]] = dream.data.simulated_monitor_vanadium_sample()\n",
"workflow[MonitorFilename[BackgroundRun]] = dream.data.simulated_monitor_empty_can()\n",
"workflow[MonitorFilename[EmptyCanRun]] = dream.data.simulated_monitor_empty_can()\n",
"workflow[CaveMonitorPosition] = sc.vector([0.0, 0.0, -4220.0], unit=\"mm\")\n",
"\n",
"workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux\n",
Expand Down Expand Up @@ -254,7 +254,7 @@
"\n",
"workflow[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n",
"workflow[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n",
"workflow[Filename[BackgroundRun]] = dream.data.simulated_empty_can()\n",
"workflow[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n",
"workflow[CalibrationFilename] = None\n",
"\n",
"workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux\n",
Expand Down Expand Up @@ -374,7 +374,7 @@
"\n",
"workflow[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n",
"workflow[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n",
"workflow[Filename[BackgroundRun]] = dream.data.simulated_empty_can()\n",
"workflow[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n",
"workflow[CalibrationFilename] = None\n",
"\n",
"workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/dream/dream-powder-reduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@
"source": [
"workflow[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n",
"workflow[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n",
"workflow[Filename[BackgroundRun]] = dream.data.simulated_empty_can()\n",
"workflow[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n",
"workflow[CalibrationFilename] = None\n",
"\n",
"workflow[MonitorFilename[SampleRun]] = dream.data.simulated_monitor_diamond_sample()\n",
"workflow[MonitorFilename[VanadiumRun]] = dream.data.simulated_monitor_vanadium_sample()\n",
"workflow[MonitorFilename[BackgroundRun]] = dream.data.simulated_monitor_empty_can()\n",
"workflow[MonitorFilename[EmptyCanRun]] = dream.data.simulated_monitor_empty_can()\n",
"workflow[CaveMonitorPosition] = sc.vector([0.0, 0.0, -4220.0], unit=\"mm\")\n",
"\n",
"workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux\n",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ requires-python = ">=3.10"
# Make sure to list one dependency per line.
dependencies = [
"dask",
"essreduce>=25.05.1",
"essreduce>=25.05.2",
"graphviz",
"numpy",
"plopp>=25.03.0",
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# --- END OF CUSTOM SECTION ---
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
dask
essreduce>=25.05.1
essreduce>=25.05.2
graphviz
numpy
plopp>=25.03.0
Expand Down
18 changes: 9 additions & 9 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SHA1:9fd92aa14a70d874a87640e7dbb332600b0c2ac7
# SHA1:60cb3370153cfec27ffbe68c100df7aa10faaed0
#
# This file was generated by pip-compile-multi.
# To update, run:
Expand All @@ -9,7 +9,7 @@ annotated-types==0.7.0
# via pydantic
asttokens==3.0.0
# via stack-data
click==8.2.0
click==8.2.1
# via dask
cloudpickle==3.1.1
# via dask
Expand All @@ -21,23 +21,23 @@ cyclebane==24.10.0
# via sciline
cycler==0.12.1
# via matplotlib
dask==2025.5.0
dask==2025.5.1
# via -r base.in
decorator==5.2.1
# via ipython
dnspython==2.7.0
# via email-validator
email-validator==2.2.0
# via scippneutron
essreduce==25.5.1
essreduce==25.5.2
# via -r base.in
exceptiongroup==1.3.0
# via ipython
executing==2.2.0
# via stack-data
fonttools==4.58.0
# via matplotlib
fsspec==2025.3.2
fsspec==2025.5.0
# via dask
graphviz==0.20.3
# via -r base.in
Expand Down Expand Up @@ -80,7 +80,7 @@ mpltoolbox==25.4.0
# via scippneutron
networkx==3.4.2
# via cyclebane
numpy==2.2.5
numpy==2.2.6
# via
# -r base.in
# contourpy
Expand All @@ -104,7 +104,7 @@ pexpect==4.9.0
# via ipython
pillow==11.2.1
# via matplotlib
plopp==25.4.1
plopp==25.5.0
# via
# -r base.in
# scippneutron
Expand Down Expand Up @@ -132,7 +132,7 @@ pythreejs==2.4.2
# via -r base.in
pyyaml==6.0.2
# via dask
sciline==25.5.1
sciline==25.5.2
# via
# -r base.in
# essreduce
Expand Down Expand Up @@ -185,7 +185,7 @@ typing-extensions==4.13.2
# pydantic-core
# sciline
# typing-inspection
typing-inspection==0.4.0
typing-inspection==0.4.1
# via pydantic
wcwidth==0.2.13
# via prompt-toolkit
Expand Down
4 changes: 2 additions & 2 deletions requirements/basetest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ idna==3.10
# via requests
iniconfig==2.1.0
# via pytest
numpy==2.2.5
numpy==2.2.6
# via pandas
packaging==25.0
# via
Expand All @@ -25,7 +25,7 @@ pandas==2.2.3
# via -r basetest.in
platformdirs==4.3.8
# via pooch
pluggy==1.5.0
pluggy==1.6.0
# via pytest
pooch==1.8.2
# via -r basetest.in
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ platformdirs==4.3.8
# via
# tox
# virtualenv
pluggy==1.5.0
pluggy==1.6.0
# via tox
pyproject-api==1.9.1
# via tox
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pip-tools==7.4.1
# via pip-compile-multi
plumbum==1.9.0
# via copier
prometheus-client==0.21.1
prometheus-client==0.22.0
# via jupyter-server
pycparser==2.22
# via cffi
Expand All @@ -107,7 +107,7 @@ terminado==0.18.1
# jupyter-server-terminals
toposort==1.10
# via pip-compile-multi
types-python-dateutil==2.9.0.20241206
types-python-dateutil==2.9.0.20250516
# via arrow
uri-template==1.3.0
# via jsonschema
Expand Down
4 changes: 2 additions & 2 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ requests==2.32.3
# via
# pooch
# sphinx
rpds-py==0.24.0
rpds-py==0.25.1
# via
# jsonschema
# referencing
Expand Down Expand Up @@ -180,7 +180,7 @@ tinycss2==1.4.0
# via bleach
tomli==2.2.1
# via sphinx
tornado==6.4.2
tornado==6.5
# via
# ipykernel
# jupyter-client
Expand Down
12 changes: 6 additions & 6 deletions requirements/nightly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ certifi==2025.4.26
# via requests
charset-normalizer==3.4.2
# via requests
click==8.2.0
click==8.2.1
# via dask
cloudpickle==3.1.1
# via dask
Expand All @@ -28,7 +28,7 @@ cyclebane==24.10.0
# via sciline
cycler==0.12.1
# via matplotlib
dask==2025.5.0
dask==2025.5.1
# via -r nightly.in
decorator==5.2.1
# via ipython
Expand All @@ -46,7 +46,7 @@ executing==2.2.0
# via stack-data
fonttools==4.58.0
# via matplotlib
fsspec==2025.3.2
fsspec==2025.5.0
# via dask
graphviz==0.20.3
# via -r nightly.in
Expand Down Expand Up @@ -93,7 +93,7 @@ mpltoolbox==25.4.0
# via scippneutron
networkx==3.4.2
# via cyclebane
numpy==2.2.5
numpy==2.2.6
# via
# -r nightly.in
# contourpy
Expand Down Expand Up @@ -129,7 +129,7 @@ plopp @ git+https://github.com/scipp/plopp@main
# -r nightly.in
# scippneutron
# tof
pluggy==1.5.0
pluggy==1.6.0
# via pytest
pooch==1.8.2
# via -r nightly.in
Expand Down Expand Up @@ -218,7 +218,7 @@ typing-extensions==4.13.2
# pydantic-core
# sciline
# typing-inspection
typing-inspection==0.4.0
typing-inspection==0.4.1
# via pydantic
tzdata==2025.2
# via pandas
Expand Down
8 changes: 4 additions & 4 deletions src/ess/dream/io/cif.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
IofTof,
ReducedEmptyCanSubtractedTofCIF,
ReducedTofCIF,
ReducerSoftwares,
ReducerSoftware,
Source,
)

Expand All @@ -25,7 +25,7 @@ def prepare_reduced_tof_cif(
authors: CIFAuthors,
beamline: Beamline,
source: Source,
reducers: ReducerSoftwares,
reducers: ReducerSoftware,
calibration: OutputCalibrationData,
) -> ReducedTofCIF:
"""Construct a CIF builder with reduced data in d-spacing.
Expand Down Expand Up @@ -71,7 +71,7 @@ def prepare_reduced_empty_can_subtracted_tof_cif(
authors: CIFAuthors,
beamline: Beamline,
source: Source,
reducers: ReducerSoftwares,
reducers: ReducerSoftware,
calibration: OutputCalibrationData,
) -> ReducedEmptyCanSubtractedTofCIF:
"""Construct a CIF builder with reduced data in d-spacing.
Expand Down Expand Up @@ -117,7 +117,7 @@ def _prepare_reduced_tof_cif_impl(
authors: CIFAuthors,
beamline: Beamline,
source: Source,
reducers: ReducerSoftwares,
reducers: ReducerSoftware,
calibration: OutputCalibrationData,
) -> ReducedTofCIF:
to_save = _prepare_data(da)
Expand Down
4 changes: 2 additions & 2 deletions src/ess/dream/io/geant4.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from scippneutron.metadata import ESS_SOURCE

from ess.powder.types import (
BackgroundRun,
Beamline,
CalibratedBeamline,
CalibratedDetector,
Expand All @@ -18,6 +17,7 @@
CaveMonitor,
CaveMonitorPosition,
DetectorData,
EmptyCanRun,
Filename,
MonitorData,
MonitorFilename,
Expand Down Expand Up @@ -321,7 +321,7 @@ def LoadGeant4Workflow() -> sciline.Pipeline:
Workflow for loading NeXus data.
"""
wf = GenericTofWorkflow(
run_types=[SampleRun, VanadiumRun, BackgroundRun], monitor_types=[CaveMonitor]
run_types=[SampleRun, VanadiumRun, EmptyCanRun], monitor_types=[CaveMonitor]
)
wf.insert(extract_geant4_detector)
wf.insert(load_geant4_csv)
Expand Down
13 changes: 11 additions & 2 deletions src/ess/dream/io/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@

import sciline

from ess.powder.types import BunkerMonitor, CaveMonitor
from ess.powder.types import (
BunkerMonitor,
CaveMonitor,
EmptyCanRun,
SampleRun,
VanadiumRun,
)
from ess.reduce.nexus.types import DetectorBankSizes, NeXusName
from ess.reduce.nexus.workflow import GenericNeXusWorkflow

Expand Down Expand Up @@ -50,7 +56,10 @@ def LoadNeXusWorkflow() -> sciline.Pipeline:
"""
Workflow for loading NeXus data.
"""
wf = GenericNeXusWorkflow()
wf = GenericNeXusWorkflow(
run_types=(SampleRun, VanadiumRun, EmptyCanRun),
monitor_types=(BunkerMonitor, CaveMonitor),
)
wf[DetectorBankSizes] = DETECTOR_BANK_SIZES
wf[NeXusName[BunkerMonitor]] = "monitor_bunker"
wf[NeXusName[CaveMonitor]] = "monitor_cave"
Expand Down
6 changes: 3 additions & 3 deletions src/ess/dream/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from __future__ import annotations

from ess.powder.types import (
BackgroundRun,
CalibrationFilename,
DspacingBins,
EmptyCanRun,
Filename,
IofDspacing,
IofDspacingTwoTheta,
Expand Down Expand Up @@ -36,8 +36,8 @@
parameter_registry[Filename[VanadiumRun]] = FilenameParameter.from_type(
Filename[VanadiumRun]
)
parameter_registry[Filename[BackgroundRun]] = FilenameParameter.from_type(
Filename[BackgroundRun]
parameter_registry[Filename[EmptyCanRun]] = FilenameParameter.from_type(
Filename[EmptyCanRun]
)
parameter_registry[CalibrationFilename] = FilenameParameter.from_type(
CalibrationFilename
Expand Down
Loading
Loading