Skip to content

Commit af78c8e

Browse files
authored
Merge pull request #273 from scipp/generic-metadata
Generic metadata models
2 parents f8e5ed3 + 230a52f commit af78c8e

File tree

20 files changed

+77
-57
lines changed

20 files changed

+77
-57
lines changed

docs/user-guide/tof/dream.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"import plopp as pp\n",
2525
"import scipp as sc\n",
2626
"from scippneutron.chopper import DiskChopper\n",
27-
"from ess.reduce.nexus.types import DetectorData, SampleRun\n",
27+
"from ess.reduce.nexus.types import AnyRun, DetectorData, SampleRun\n",
2828
"from ess.reduce.time_of_flight import *"
2929
]
3030
},
@@ -340,7 +340,7 @@
340340
"outputs": [],
341341
"source": [
342342
"lut_wf = TofLookupTableWorkflow()\n",
343-
"lut_wf[DiskChoppers] = disk_choppers\n",
343+
"lut_wf[DiskChoppers[AnyRun]] = disk_choppers\n",
344344
"lut_wf[SourcePosition] = source_position\n",
345345
"lut_wf[LtotalRange] = (\n",
346346
" sc.scalar(75.5, unit=\"m\"),\n",
@@ -713,7 +713,7 @@
713713
"outputs": [],
714714
"source": [
715715
"# Update workflow\n",
716-
"lut_wf[DiskChoppers] = disk_choppers\n",
716+
"lut_wf[DiskChoppers[AnyRun]] = disk_choppers\n",
717717
"\n",
718718
"sim = lut_wf.compute(SimulationResults)\n",
719719
"\n",

docs/user-guide/tof/frame-unwrapping.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"import plopp as pp\n",
3333
"import scipp as sc\n",
3434
"from scippneutron.chopper import DiskChopper\n",
35-
"from ess.reduce.nexus.types import DetectorData, SampleRun\n",
35+
"from ess.reduce.nexus.types import AnyRun, DetectorData, SampleRun\n",
3636
"from ess.reduce.time_of_flight import *\n",
3737
"import tof\n",
3838
"\n",
@@ -212,7 +212,7 @@
212212
"source": [
213213
"lut_wf = TofLookupTableWorkflow()\n",
214214
"lut_wf[LtotalRange] = detectors[0].distance, detectors[-1].distance\n",
215-
"lut_wf[DiskChoppers] = {\n",
215+
"lut_wf[DiskChoppers[AnyRun]] = {\n",
216216
" \"chopper\": DiskChopper(\n",
217217
" frequency=-chopper.frequency,\n",
218218
" beam_position=sc.scalar(0.0, unit=\"deg\"),\n",
@@ -399,7 +399,7 @@
399399
"lut_wf = TofLookupTableWorkflow()\n",
400400
"lut_wf[PulseStride] = 2\n",
401401
"lut_wf[LtotalRange] = detectors[0].distance, detectors[-1].distance\n",
402-
"lut_wf[DiskChoppers] = {\n",
402+
"lut_wf[DiskChoppers[AnyRun]] = {\n",
403403
" ch.name: DiskChopper(\n",
404404
" frequency=-ch.frequency,\n",
405405
" beam_position=sc.scalar(0.0, unit=\"deg\"),\n",

docs/user-guide/tof/wfm.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"import plopp as pp\n",
2626
"import scipp as sc\n",
2727
"from scippneutron.chopper import DiskChopper\n",
28-
"from ess.reduce.nexus.types import DetectorData, SampleRun\n",
28+
"from ess.reduce.nexus.types import AnyRun, DetectorData, SampleRun\n",
2929
"from ess.reduce.time_of_flight import *"
3030
]
3131
},
@@ -361,7 +361,7 @@
361361
"outputs": [],
362362
"source": [
363363
"lut_wf = TofLookupTableWorkflow()\n",
364-
"lut_wf[DiskChoppers] = disk_choppers\n",
364+
"lut_wf[DiskChoppers[AnyRun]] = disk_choppers\n",
365365
"lut_wf[SourcePosition] = source_position\n",
366366
"lut_wf[LtotalRange] = Ltotal, Ltotal\n",
367367
"lut_wf[LookupTableRelativeErrorThreshold] = 0.1\n",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ requires-python = ">=3.11"
3030
# Run 'tox -e deps' after making changes here. This will update requirement files.
3131
# Make sure to list one dependency per line.
3232
dependencies = [
33-
"sciline>=25.05.1",
33+
"sciline>=25.11.0",
3434
"scipp>=25.04.0",
3535
"scippneutron>=25.02.0",
3636
"scippnexus>=25.06.0",

requirements/base.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# will not be touched by ``make_base.py``
33
# --- END OF CUSTOM SECTION ---
44
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
5-
sciline>=25.05.1
5+
sciline>=25.11.0
66
scipp>=25.04.0
77
scippneutron>=25.02.0
88
scippnexus>=25.06.0

requirements/base.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:99f16c205324f8050cb96af707a607064a1a39a3
1+
# SHA1:e86f9d2876cf304569910ff89826c8e5aac84bf8
22
#
33
# This file was generated by pip-compile-multi.
44
# To update, run:
@@ -66,7 +66,7 @@ python-dateutil==2.9.0.post0
6666
# matplotlib
6767
# scippneutron
6868
# scippnexus
69-
sciline==25.8.0
69+
sciline==25.11.0
7070
# via -r base.in
7171
scipp==25.8.0
7272
# via
@@ -79,7 +79,7 @@ scippnexus==25.6.0
7979
# via
8080
# -r base.in
8181
# scippneutron
82-
scipy==1.16.2
82+
scipy==1.16.3
8383
# via
8484
# scippneutron
8585
# scippnexus

requirements/basetest.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ ipython==9.6.0
3131
# via ipywidgets
3232
ipython-pygments-lexers==1.1.1
3333
# via ipython
34-
ipywidgets==8.1.7
34+
ipywidgets==8.1.8
3535
# via -r basetest.in
3636
jedi==0.19.2
3737
# via ipython
38-
jupyterlab-widgets==3.0.15
38+
jupyterlab-widgets==3.0.16
3939
# via ipywidgets
4040
kiwisolver==1.4.9
4141
# via matplotlib
@@ -99,7 +99,7 @@ requests==2.32.5
9999
# via pooch
100100
scipp==25.8.0
101101
# via tof
102-
scipy==1.16.2
102+
scipy==1.16.3
103103
# via
104104
# -r basetest.in
105105
# tof
@@ -120,5 +120,5 @@ urllib3==2.5.0
120120
# via requests
121121
wcwidth==0.2.14
122122
# via prompt-toolkit
123-
widgetsnbextension==4.0.14
123+
widgetsnbextension==4.0.15
124124
# via ipywidgets

requirements/ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ tox==4.32.0
4848
# via -r ci.in
4949
urllib3==2.5.0
5050
# via requests
51-
virtualenv==20.35.3
51+
virtualenv==20.35.4
5252
# via tox

requirements/dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pip-compile-multi==3.2.2
8383
# via -r dev.in
8484
pip-tools==7.5.1
8585
# via pip-compile-multi
86-
plumbum==1.9.0
86+
plumbum==1.10.0
8787
# via copier
8888
prometheus-client==0.23.1
8989
# via jupyter-server
@@ -117,7 +117,7 @@ tzdata==2025.2
117117
# via arrow
118118
uri-template==1.3.0
119119
# via jsonschema
120-
webcolors==24.11.1
120+
webcolors==25.10.0
121121
# via jsonschema
122122
websocket-client==1.9.0
123123
# via jupyter-server

requirements/docs.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ipython==9.6.0
6565
# ipywidgets
6666
ipython-pygments-lexers==1.1.1
6767
# via ipython
68-
ipywidgets==8.1.7
68+
ipywidgets==8.1.8
6969
# via -r docs.in
7070
jedi==0.19.2
7171
# via ipython
@@ -92,7 +92,7 @@ jupyter-core==5.9.1
9292
# nbformat
9393
jupyterlab-pygments==0.3.0
9494
# via nbconvert
95-
jupyterlab-widgets==3.0.15
95+
jupyterlab-widgets==3.0.16
9696
# via ipywidgets
9797
llvmlite==0.45.1
9898
# via numba
@@ -141,7 +141,7 @@ platformdirs==4.5.0
141141
# via jupyter-core
142142
prompt-toolkit==3.0.52
143143
# via ipython
144-
psutil==7.1.2
144+
psutil==7.1.3
145145
# via ipykernel
146146
ptyprocess==0.7.0
147147
# via pexpect
@@ -239,5 +239,5 @@ webencodings==0.5.1
239239
# via
240240
# bleach
241241
# tinycss2
242-
widgetsnbextension==4.0.14
242+
widgetsnbextension==4.0.15
243243
# via ipywidgets

0 commit comments

Comments
 (0)