Skip to content

Commit b009d14

Browse files
committed
Merge branch 'main' into add-lower-pins
2 parents c57a290 + 8d4d537 commit b009d14

File tree

23 files changed

+111
-172
lines changed

23 files changed

+111
-172
lines changed

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ _commit: 3561fcd
33
_src_path: gh:scipp/copier_template
44
description: Diffraction data reduction for the European Spallation Source
55
max_python: '3.13'
6-
min_python: '3.10'
6+
min_python: '3.11'
77
namespace_package: ess
88
nightly_deps: scipp,scippnexus,sciline,plopp,scippneutron,essreduce,tof
99
orgname: scipp
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10
1+
3.11

docs/developer/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Alternatively, if you want a different workflow, take a look at ``tox.ini`` or `
4040
Run the tests using
4141
4242
```sh
43-
tox -e py310
43+
tox -e py311
4444
```
4545
4646
(or just `tox` if you want to run all environments).

docs/user-guide/dream/dream-instrument-view.ipynb

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -140,27 +140,9 @@
140140
"full_view"
141141
]
142142
},
143-
{
144-
"cell_type": "code",
145-
"execution_count": null,
146-
"id": "9",
147-
"metadata": {
148-
"editable": true,
149-
"nbsphinx": "hidden",
150-
"slideshow": {
151-
"slide_type": ""
152-
},
153-
"tags": []
154-
},
155-
"outputs": [],
156-
"source": [
157-
"full_view[2].controls[\"tof\"][\"slider\"].value = 35\n",
158-
"full_view[1].toolbar.tools[\"autoscale\"].click()"
159-
]
160-
},
161143
{
162144
"cell_type": "markdown",
163-
"id": "10",
145+
"id": "9",
164146
"metadata": {
165147
"editable": true,
166148
"slideshow": {
@@ -179,7 +161,7 @@
179161
{
180162
"cell_type": "code",
181163
"execution_count": null,
182-
"id": "11",
164+
"id": "10",
183165
"metadata": {
184166
"editable": true,
185167
"slideshow": {
@@ -193,27 +175,9 @@
193175
"mantle_view"
194176
]
195177
},
196-
{
197-
"cell_type": "code",
198-
"execution_count": null,
199-
"id": "12",
200-
"metadata": {
201-
"editable": true,
202-
"nbsphinx": "hidden",
203-
"slideshow": {
204-
"slide_type": ""
205-
},
206-
"tags": []
207-
},
208-
"outputs": [],
209-
"source": [
210-
"mantle_view[1].controls[\"tof\"][\"slider\"].value = 43\n",
211-
"mantle_view[0].toolbar.tools[\"autoscale\"].click()"
212-
]
213-
},
214178
{
215179
"cell_type": "markdown",
216-
"id": "13",
180+
"id": "11",
217181
"metadata": {},
218182
"source": [
219183
"The instrument view is designed to be flexible in terms of what it accepts as input.\n",
@@ -225,7 +189,7 @@
225189
{
226190
"cell_type": "code",
227191
"execution_count": null,
228-
"id": "14",
192+
"id": "12",
229193
"metadata": {},
230194
"outputs": [],
231195
"source": [

tools/dream-make-tof-lookup-table.ipynb renamed to docs/user-guide/dream/dream-make-tof-lookup-table.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"id": "0",
66
"metadata": {},
77
"source": [
8-
"# Create a time-of-flight lookup table for DREAM"
8+
"# Create a time-of-flight lookup table for DREAM\n",
9+
"\n",
10+
"This notebook shows how to create a time-of-flight lookup table for the DREAM instrument."
911
]
1012
},
1113
{
@@ -16,7 +18,6 @@
1618
"outputs": [],
1719
"source": [
1820
"import scipp as sc\n",
19-
"import sciline as sl\n",
2021
"from ess.reduce import time_of_flight\n",
2122
"from ess.dream.beamline import InstrumentConfiguration, choppers"
2223
]
@@ -26,7 +27,9 @@
2627
"id": "2",
2728
"metadata": {},
2829
"source": [
29-
"## Select the choppers"
30+
"## Select the choppers\n",
31+
"\n",
32+
"We select the choppers for the 'high-flux' configuration."
3033
]
3134
},
3235
{
@@ -54,15 +57,12 @@
5457
"metadata": {},
5558
"outputs": [],
5659
"source": [
57-
"wf = sl.Pipeline(\n",
58-
" time_of_flight.providers(), params=time_of_flight.default_parameters()\n",
59-
")\n",
60+
"wf = time_of_flight.TofLookupTableWorkflow()\n",
6061
"\n",
6162
"wf[time_of_flight.LtotalRange] = sc.scalar(60.0, unit=\"m\"), sc.scalar(80.0, unit=\"m\")\n",
62-
"wf[time_of_flight.SimulationResults] = time_of_flight.simulate_beamline(\n",
63-
" choppers=disk_choppers, neutrons=5_000_000, source_position=sc.vector([0, 0, 0], unit='m'),\n",
64-
")\n",
65-
"\n",
63+
"wf[time_of_flight.NumberOfSimulatedNeutrons] = 200_000 # Increase this number for more reliable results\n",
64+
"wf[time_of_flight.SourcePosition] = sc.vector([0, 0, 0], unit='m')\n",
65+
"wf[time_of_flight.DiskChoppers] = disk_choppers\n",
6666
"wf[time_of_flight.DistanceResolution] = sc.scalar(0.1, unit=\"m\")\n",
6767
"wf[time_of_flight.TimeResolution] = sc.scalar(250.0, unit='us')\n",
6868
"wf[time_of_flight.LookupTableRelativeErrorThreshold] = 0.02\n",

docs/user-guide/dream/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ dream-instrument-view
5454
workflow-widget-dream
5555
dream-detector-diagnostics
5656
dream-visualize-absorption
57+
dream-make-tof-lookup-table
5758
```

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,23 @@ classifiers = [
1818
"Operating System :: OS Independent",
1919
"Programming Language :: Python :: 3",
2020
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",
2423
"Programming Language :: Python :: 3.13",
2524
"Topic :: Scientific/Engineering",
2625
"Typing :: Typed",
2726
]
28-
requires-python = ">=3.10"
27+
requires-python = ">=3.11"
2928

3029
# IMPORTANT:
3130
# Run 'tox -e deps' after making changes here. This will update requirement files.
3231
# Make sure to list one dependency per line.
3332
dependencies = [
3433
"dask>=2022.1.0",
35-
"essreduce>=25.05.3",
34+
"essreduce>=25.07.0",
3635
"graphviz",
3736
"numpy>=1.25",
38-
"plopp>=25.03.0",
37+
"plopp>=25.07.0",
3938
"pythreejs>=2.4.1",
4039
"sciline>=25.04.1",
4140
"scipp>=25.05.1",

requirements/base.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# --- END OF CUSTOM SECTION ---
44
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
55
dask>=2022.1.0
6-
essreduce>=25.05.3
6+
essreduce>=25.07.0
77
graphviz
88
numpy>=1.25
9-
plopp>=25.03.0
9+
plopp>=25.07.0
1010
pythreejs>=2.4.1
1111
sciline>=25.04.1
1212
scipp>=25.05.1

requirements/base.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:8cd11f24389497f17c533713cf71285ce2961028
1+
# SHA1:14c6bcb4e6d6485d81209545674ad66d2bd9f82f
22
#
33
# This file was generated by pip-compile-multi.
44
# To update, run:
@@ -13,9 +13,9 @@ click==8.2.1
1313
# via dask
1414
cloudpickle==3.1.1
1515
# via dask
16-
comm==0.2.2
16+
comm==0.2.3
1717
# via ipywidgets
18-
contourpy==1.3.2
18+
contourpy==1.3.3
1919
# via matplotlib
2020
cyclebane==24.10.0
2121
# via sciline
@@ -31,11 +31,9 @@ email-validator==2.2.0
3131
# via scippneutron
3232
essreduce==25.7.1
3333
# via -r base.in
34-
exceptiongroup==1.3.0
35-
# via ipython
3634
executing==2.2.0
3735
# via stack-data
38-
fonttools==4.58.5
36+
fonttools==4.59.0
3937
# via matplotlib
4038
fsspec==2025.7.0
4139
# via dask
@@ -51,8 +49,10 @@ importlib-metadata==8.7.0
5149
# via dask
5250
ipydatawidgets==4.3.5
5351
# via pythreejs
54-
ipython==8.37.0
52+
ipython==9.4.0
5553
# via ipywidgets
54+
ipython-pygments-lexers==1.1.1
55+
# via ipython
5656
ipywidgets==8.1.7
5757
# via
5858
# ipydatawidgets
@@ -70,17 +70,17 @@ lazy-loader==0.4
7070
# tof
7171
locket==1.0.0
7272
# via partd
73-
matplotlib==3.10.3
73+
matplotlib==3.10.5
7474
# via
7575
# mpltoolbox
7676
# plopp
7777
matplotlib-inline==0.1.7
7878
# via ipython
7979
mpltoolbox==25.5.0
8080
# via scippneutron
81-
networkx==3.4.2
81+
networkx==3.5
8282
# via cyclebane
83-
numpy==2.2.6
83+
numpy==2.3.2
8484
# via
8585
# -r base.in
8686
# contourpy
@@ -104,7 +104,7 @@ pexpect==4.9.0
104104
# via ipython
105105
pillow==11.3.0
106106
# via matplotlib
107-
plopp==25.7.0
107+
plopp==25.7.1
108108
# via
109109
# -r base.in
110110
# scippneutron
@@ -120,7 +120,9 @@ pydantic==2.11.7
120120
pydantic-core==2.33.2
121121
# via pydantic
122122
pygments==2.19.2
123-
# via ipython
123+
# via
124+
# ipython
125+
# ipython-pygments-lexers
124126
pyparsing==3.2.3
125127
# via matplotlib
126128
python-dateutil==2.9.0.post0
@@ -152,7 +154,7 @@ scippnexus==25.6.0
152154
# -r base.in
153155
# essreduce
154156
# scippneutron
155-
scipy==1.15.3
157+
scipy==1.16.1
156158
# via
157159
# scippneutron
158160
# scippnexus
@@ -169,7 +171,6 @@ toolz==1.0.0
169171
# partd
170172
traitlets==5.14.3
171173
# via
172-
# comm
173174
# ipython
174175
# ipywidgets
175176
# matplotlib-inline
@@ -179,7 +180,6 @@ traittypes==0.2.1
179180
# via ipydatawidgets
180181
typing-extensions==4.14.1
181182
# via
182-
# exceptiongroup
183183
# ipython
184184
# pydantic
185185
# pydantic-core

0 commit comments

Comments
 (0)