Skip to content

Commit 7b6d5d6

Browse files
authored
Merge pull request #240 from scipp/custom-typevar-constraints
Constrain type vars instead of pruning
2 parents 9665268 + e714c2f commit 7b6d5d6

File tree

21 files changed

+235
-237
lines changed

21 files changed

+235
-237
lines changed

docs/user-guide/tof/dream.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@
306306
"outputs": [],
307307
"source": [
308308
"wf = time_of_flight.GenericTofWorkflow(\n",
309-
" tof_lut_provider=time_of_flight.TofLutProvider.TOF\n",
309+
" tof_lut_provider=time_of_flight.TofLutProvider.TOF,\n",
310+
" run_types=[SampleRun],\n",
311+
" monitor_types=[],\n",
310312
")\n",
311313
"wf[DetectorData[SampleRun]] = raw_data\n",
312314
"wf[time_of_flight.DetectorLtotal[SampleRun]] = Ltotal\n",

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@
160160
"outputs": [],
161161
"source": [
162162
"wf = time_of_flight.GenericTofWorkflow(\n",
163-
" tof_lut_provider=time_of_flight.TofLutProvider.TOF\n",
163+
" tof_lut_provider=time_of_flight.TofLutProvider.TOF,\n",
164+
" run_types=[SampleRun],\n",
165+
" monitor_types=[],\n",
164166
")\n",
165167
"\n",
166168
"wf[DetectorData[SampleRun]] = nxevent_data\n",
@@ -371,7 +373,9 @@
371373
"outputs": [],
372374
"source": [
373375
"wf = time_of_flight.GenericTofWorkflow(\n",
374-
" tof_lut_provider=time_of_flight.TofLutProvider.TOF\n",
376+
" tof_lut_provider=time_of_flight.TofLutProvider.TOF,\n",
377+
" run_types=[SampleRun],\n",
378+
" monitor_types=[],\n",
375379
")\n",
376380
"\n",
377381
"nxevent_data = results.to_nxevent_data()\n",

docs/user-guide/tof/wfm.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@
327327
"outputs": [],
328328
"source": [
329329
"wf = time_of_flight.GenericTofWorkflow(\n",
330-
" tof_lut_provider=time_of_flight.TofLutProvider.TOF\n",
330+
" tof_lut_provider=time_of_flight.TofLutProvider.TOF,\n",
331+
" run_types=[SampleRun],\n",
332+
" monitor_types=[],\n",
331333
")\n",
332334
"wf[DetectorData[SampleRun]] = raw_data\n",
333335
"wf[time_of_flight.DetectorLtotal[SampleRun]] = Ltotal\n",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ requires-python = ">=3.10"
3131
# Run 'tox -e deps' after making changes here. This will update requirement files.
3232
# Make sure to list one dependency per line.
3333
dependencies = [
34-
"sciline>=25.04.1",
34+
"sciline>=25.05.1",
3535
"scipp>=25.01.0",
3636
"scippneutron>=25.02.0",
3737
"scippnexus>=24.11.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.04.1
5+
sciline>=25.05.1
66
scipp>=25.01.0
77
scippneutron>=25.02.0
88
scippnexus>=24.11.0

requirements/base.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:082d6bf55d8a06cdc1dd3a0a78dd31c318c26424
1+
# SHA1:da1d0d3975da182dcdb34676612971ba09dbdc53
22
#
33
# This file was generated by pip-compile-multi.
44
# To update, run:
@@ -17,7 +17,7 @@ dnspython==2.7.0
1717
# via email-validator
1818
email-validator==2.2.0
1919
# via scippneutron
20-
fonttools==4.57.0
20+
fonttools==4.58.0
2121
# via matplotlib
2222
h5py==3.13.0
2323
# via
@@ -31,7 +31,7 @@ lazy-loader==0.4
3131
# via
3232
# plopp
3333
# scippneutron
34-
matplotlib==3.10.1
34+
matplotlib==3.10.3
3535
# via
3636
# mpltoolbox
3737
# plopp
@@ -66,20 +66,20 @@ python-dateutil==2.9.0.post0
6666
# matplotlib
6767
# scippneutron
6868
# scippnexus
69-
sciline==25.4.1
69+
sciline==25.5.1
7070
# via -r base.in
7171
scipp==25.5.0
7272
# via
7373
# -r base.in
7474
# scippneutron
7575
# scippnexus
76-
scippneutron==25.2.1
76+
scippneutron==25.5.0
7777
# via -r base.in
7878
scippnexus==25.4.0
7979
# via
8080
# -r base.in
8181
# scippneutron
82-
scipy==1.15.2
82+
scipy==1.15.3
8383
# via
8484
# scippneutron
8585
# scippnexus

requirements/basetest.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ cycler==0.12.1
1919
# via matplotlib
2020
decorator==5.2.1
2121
# via ipython
22-
exceptiongroup==1.2.2
22+
exceptiongroup==1.3.0
2323
# via
2424
# ipython
2525
# pytest
2626
executing==2.2.0
2727
# via stack-data
28-
fonttools==4.57.0
28+
fonttools==4.58.0
2929
# via matplotlib
3030
idna==3.10
3131
# via requests
3232
iniconfig==2.1.0
3333
# via pytest
3434
ipython==8.36.0
3535
# via ipywidgets
36-
ipywidgets==8.1.6
36+
ipywidgets==8.1.7
3737
# via -r basetest.in
3838
jedi==0.19.2
3939
# via ipython
40-
jupyterlab-widgets==3.0.14
40+
jupyterlab-widgets==3.0.15
4141
# via ipywidgets
4242
kiwisolver==1.4.8
4343
# via matplotlib
@@ -47,7 +47,7 @@ lazy-loader==0.4
4747
# tof
4848
llvmlite==0.44.0
4949
# via numba
50-
matplotlib==3.10.1
50+
matplotlib==3.10.3
5151
# via plopp
5252
matplotlib-inline==0.1.7
5353
# via ipython
@@ -72,7 +72,7 @@ pexpect==4.9.0
7272
# via ipython
7373
pillow==11.2.1
7474
# via matplotlib
75-
platformdirs==4.3.7
75+
platformdirs==4.3.8
7676
# via pooch
7777
plopp==25.4.1
7878
# via tof
@@ -98,7 +98,7 @@ requests==2.32.3
9898
# via pooch
9999
scipp==25.5.0
100100
# via tof
101-
scipy==1.15.2
101+
scipy==1.15.3
102102
# via
103103
# -r basetest.in
104104
# tof
@@ -117,7 +117,9 @@ traitlets==5.14.3
117117
# ipywidgets
118118
# matplotlib-inline
119119
typing-extensions==4.13.2
120-
# via ipython
120+
# via
121+
# exceptiongroup
122+
# ipython
121123
urllib3==2.4.0
122124
# via requests
123125
wcwidth==0.2.13

requirements/ci.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ packaging==25.0
3232
# -r ci.in
3333
# pyproject-api
3434
# tox
35-
platformdirs==4.3.7
35+
platformdirs==4.3.8
3636
# via
3737
# tox
3838
# virtualenv
3939
pluggy==1.5.0
4040
# via tox
41-
pyproject-api==1.9.0
41+
pyproject-api==1.9.1
4242
# via tox
4343
requests==2.32.3
4444
# via -r ci.in
@@ -48,11 +48,11 @@ tomli==2.2.1
4848
# via
4949
# pyproject-api
5050
# tox
51-
tox==4.25.0
51+
tox==4.26.0
5252
# via -r ci.in
5353
typing-extensions==4.13.2
5454
# via tox
5555
urllib3==2.4.0
5656
# via requests
57-
virtualenv==20.30.0
57+
virtualenv==20.31.2
5858
# via tox

requirements/dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ async-lru==2.0.5
2626
# via jupyterlab
2727
cffi==1.17.1
2828
# via argon2-cffi-bindings
29-
click==8.1.8
29+
click==8.2.0
3030
# via
3131
# pip-compile-multi
3232
# pip-tools
3333
copier==9.7.1
3434
# via -r dev.in
35-
dunamai==1.23.1
35+
dunamai==1.24.1
3636
# via copier
3737
fqdn==1.5.1
3838
# via jsonschema
@@ -61,15 +61,15 @@ jupyter-events==0.12.0
6161
# via jupyter-server
6262
jupyter-lsp==2.2.5
6363
# via jupyterlab
64-
jupyter-server==2.15.0
64+
jupyter-server==2.16.0
6565
# via
6666
# jupyter-lsp
6767
# jupyterlab
6868
# jupyterlab-server
6969
# notebook-shim
7070
jupyter-server-terminals==0.5.3
7171
# via jupyter-server
72-
jupyterlab==4.4.1
72+
jupyterlab==4.4.2
7373
# via -r dev.in
7474
jupyterlab-server==2.27.3
7575
# via jupyterlab

requirements/docs.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ accessible-pygments==0.0.5
1010
# via pydata-sphinx-theme
1111
alabaster==1.0.0
1212
# via sphinx
13-
appnope==0.1.4
14-
# via ipykernel
1513
asttokens==3.0.0
1614
# via stack-data
1715
attrs==25.3.0
@@ -48,7 +46,7 @@ docutils==0.21.2
4846
# nbsphinx
4947
# pydata-sphinx-theme
5048
# sphinx
51-
exceptiongroup==1.2.2
49+
exceptiongroup==1.3.0
5250
# via ipython
5351
executing==2.2.0
5452
# via stack-data
@@ -65,7 +63,7 @@ ipython==8.36.0
6563
# -r docs.in
6664
# ipykernel
6765
# ipywidgets
68-
ipywidgets==8.1.6
66+
ipywidgets==8.1.7
6967
# via -r docs.in
7068
jedi==0.19.2
7169
# via ipython
@@ -92,7 +90,7 @@ jupyter-core==5.7.2
9290
# nbformat
9391
jupyterlab-pygments==0.3.0
9492
# via nbconvert
95-
jupyterlab-widgets==3.0.14
93+
jupyterlab-widgets==3.0.15
9694
# via ipywidgets
9795
markdown-it-py==3.0.0
9896
# via
@@ -133,7 +131,7 @@ parso==0.8.4
133131
# via jedi
134132
pexpect==4.9.0
135133
# via ipython
136-
platformdirs==4.3.7
134+
platformdirs==4.3.8
137135
# via jupyter-core
138136
prompt-toolkit==3.0.51
139137
# via ipython
@@ -168,7 +166,7 @@ rpds-py==0.24.0
168166
# via
169167
# jsonschema
170168
# referencing
171-
snowballstemmer==2.2.0
169+
snowballstemmer==3.0.1
172170
# via sphinx
173171
soupsieve==2.7
174172
# via beautifulsoup4

0 commit comments

Comments
 (0)