essreduce 25.4.0__py3-none-any.whl → 25.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ess/reduce/nexus/types.py +8 -14
- ess/reduce/time_of_flight/interpolator_numba.py +12 -9
- {essreduce-25.4.0.dist-info → essreduce-25.4.1.dist-info}/METADATA +2 -2
- {essreduce-25.4.0.dist-info → essreduce-25.4.1.dist-info}/RECORD +8 -8
- {essreduce-25.4.0.dist-info → essreduce-25.4.1.dist-info}/WHEEL +0 -0
- {essreduce-25.4.0.dist-info → essreduce-25.4.1.dist-info}/entry_points.txt +0 -0
- {essreduce-25.4.0.dist-info → essreduce-25.4.1.dist-info}/licenses/LICENSE +0 -0
- {essreduce-25.4.0.dist-info → essreduce-25.4.1.dist-info}/top_level.txt +0 -0
ess/reduce/nexus/types.py
CHANGED
|
@@ -198,19 +198,15 @@ NeXusDetectorName = NeXusName[snx.NXdetector]
|
|
|
198
198
|
"""Name of a detector (bank) in a NeXus file."""
|
|
199
199
|
|
|
200
200
|
|
|
201
|
-
class NeXusComponent(
|
|
202
|
-
sciline.ScopeTwoParams[Component, RunType, sc.DataGroup], sc.DataGroup
|
|
203
|
-
):
|
|
201
|
+
class NeXusComponent(sciline.Scope[Component, RunType, sc.DataGroup], sc.DataGroup):
|
|
204
202
|
"""Raw data from a NeXus component."""
|
|
205
203
|
|
|
206
204
|
|
|
207
|
-
class AllNeXusComponents(
|
|
208
|
-
sciline.ScopeTwoParams[Component, RunType, sc.DataGroup], sc.DataGroup
|
|
209
|
-
):
|
|
205
|
+
class AllNeXusComponents(sciline.Scope[Component, RunType, sc.DataGroup], sc.DataGroup):
|
|
210
206
|
"""Raw data from all NeXus components of one class."""
|
|
211
207
|
|
|
212
208
|
|
|
213
|
-
class NeXusData(sciline.
|
|
209
|
+
class NeXusData(sciline.Scope[Component, RunType, sc.DataArray], sc.DataArray):
|
|
214
210
|
"""
|
|
215
211
|
Data array loaded from an NXevent_data or NXdata group.
|
|
216
212
|
|
|
@@ -218,7 +214,7 @@ class NeXusData(sciline.ScopeTwoParams[Component, RunType, sc.DataArray], sc.Dat
|
|
|
218
214
|
"""
|
|
219
215
|
|
|
220
216
|
|
|
221
|
-
class Position(sciline.
|
|
217
|
+
class Position(sciline.Scope[Component, RunType, sc.Variable], sc.Variable):
|
|
222
218
|
"""Position of a component such as source, sample, monitor, or detector."""
|
|
223
219
|
|
|
224
220
|
|
|
@@ -227,7 +223,7 @@ class DetectorPositionOffset(sciline.Scope[RunType, sc.Variable], sc.Variable):
|
|
|
227
223
|
|
|
228
224
|
|
|
229
225
|
class MonitorPositionOffset(
|
|
230
|
-
sciline.
|
|
226
|
+
sciline.Scope[RunType, MonitorType, sc.Variable], sc.Variable
|
|
231
227
|
):
|
|
232
228
|
"""Offset for the monitor position, added to base position."""
|
|
233
229
|
|
|
@@ -241,7 +237,7 @@ class CalibratedBeamline(sciline.Scope[RunType, sc.DataArray], sc.DataArray):
|
|
|
241
237
|
|
|
242
238
|
|
|
243
239
|
class CalibratedMonitor(
|
|
244
|
-
sciline.
|
|
240
|
+
sciline.Scope[RunType, MonitorType, sc.DataArray], sc.DataArray
|
|
245
241
|
):
|
|
246
242
|
"""Calibrated data from a monitor."""
|
|
247
243
|
|
|
@@ -250,9 +246,7 @@ class DetectorData(sciline.Scope[RunType, sc.DataArray], sc.DataArray):
|
|
|
250
246
|
"""Calibrated detector merged with neutron event or histogram data."""
|
|
251
247
|
|
|
252
248
|
|
|
253
|
-
class MonitorData(
|
|
254
|
-
sciline.ScopeTwoParams[RunType, MonitorType, sc.DataArray], sc.DataArray
|
|
255
|
-
):
|
|
249
|
+
class MonitorData(sciline.Scope[RunType, MonitorType, sc.DataArray], sc.DataArray):
|
|
256
250
|
"""Calibrated monitor merged with neutron event or histogram data."""
|
|
257
251
|
|
|
258
252
|
|
|
@@ -314,7 +308,7 @@ class NeXusDataLocationSpec(NeXusLocationSpec, Generic[Component, RunType]):
|
|
|
314
308
|
|
|
315
309
|
|
|
316
310
|
class NeXusTransformationChain(
|
|
317
|
-
sciline.
|
|
311
|
+
sciline.Scope[Component, RunType, snx.TransformationChain],
|
|
318
312
|
snx.TransformationChain,
|
|
319
313
|
): ...
|
|
320
314
|
|
|
@@ -43,13 +43,16 @@ def interpolate(
|
|
|
43
43
|
if not (len(xp) == len(yp) == len(zp) == len(out)):
|
|
44
44
|
raise ValueError("Interpolator: all input arrays must have the same size.")
|
|
45
45
|
|
|
46
|
+
nx = len(x)
|
|
47
|
+
ny = len(y)
|
|
48
|
+
nz = len(z)
|
|
46
49
|
npoints = len(xp)
|
|
47
50
|
xmin = x[0]
|
|
48
|
-
xmax = x[-1]
|
|
51
|
+
xmax = x[nx - 1]
|
|
49
52
|
ymin = y[0]
|
|
50
|
-
ymax = y[-1]
|
|
53
|
+
ymax = y[ny - 1]
|
|
51
54
|
zmin = z[0]
|
|
52
|
-
zmax = z[-1]
|
|
55
|
+
zmax = z[nz - 1]
|
|
53
56
|
dx = x[1] - xmin
|
|
54
57
|
dy = y[1] - ymin
|
|
55
58
|
dz = z[1] - zmin
|
|
@@ -75,14 +78,14 @@ def interpolate(
|
|
|
75
78
|
out[i] = fill_value
|
|
76
79
|
|
|
77
80
|
else:
|
|
78
|
-
ix = int((xx - xmin) * one_over_dx)
|
|
79
|
-
iy = int((yy - ymin) * one_over_dy)
|
|
80
|
-
iz = int((zz - zmin) * one_over_dz)
|
|
81
|
+
ix = nx - 2 if xx == xmax else int((xx - xmin) * one_over_dx)
|
|
82
|
+
iy = ny - 2 if yy == ymax else int((yy - ymin) * one_over_dy)
|
|
83
|
+
iz = nz - 2 if zz == zmax else int((zz - zmin) * one_over_dz)
|
|
81
84
|
|
|
82
|
-
y2 = y[iy + 1]
|
|
83
|
-
y1 = y[iy]
|
|
84
|
-
x2 = x[ix + 1]
|
|
85
85
|
x1 = x[ix]
|
|
86
|
+
x2 = x[ix + 1]
|
|
87
|
+
y1 = y[iy]
|
|
88
|
+
y2 = y[iy + 1]
|
|
86
89
|
z1 = z[iz]
|
|
87
90
|
z2 = z[iz + 1]
|
|
88
91
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: essreduce
|
|
3
|
-
Version: 25.4.
|
|
3
|
+
Version: 25.4.1
|
|
4
4
|
Summary: Common data reduction tools for the ESS facility
|
|
5
5
|
Author: Scipp contributors
|
|
6
6
|
License: BSD 3-Clause License
|
|
@@ -51,7 +51,7 @@ Classifier: Typing :: Typed
|
|
|
51
51
|
Requires-Python: >=3.10
|
|
52
52
|
Description-Content-Type: text/markdown
|
|
53
53
|
License-File: LICENSE
|
|
54
|
-
Requires-Dist: sciline>=
|
|
54
|
+
Requires-Dist: sciline>=25.04.1
|
|
55
55
|
Requires-Dist: scipp>=25.01.0
|
|
56
56
|
Requires-Dist: scippneutron>=25.02.0
|
|
57
57
|
Requires-Dist: scippnexus>=24.11.0
|
|
@@ -15,13 +15,13 @@ ess/reduce/nexus/__init__.py,sha256=59bxKkNYg8DYcSykNvH6nCa5SYchJC4SbgZEKhkNdYc,
|
|
|
15
15
|
ess/reduce/nexus/_nexus_loader.py,sha256=5N48AMJx1AaFZb6WZPPbVKUlXyFMVVtZrn7Bae57O3A,19842
|
|
16
16
|
ess/reduce/nexus/json_generator.py,sha256=ME2Xn8L7Oi3uHJk9ZZdCRQTRX-OV_wh9-DJn07Alplk,2529
|
|
17
17
|
ess/reduce/nexus/json_nexus.py,sha256=QrVc0p424nZ5dHX9gebAJppTw6lGZq9404P_OFl1giA,10282
|
|
18
|
-
ess/reduce/nexus/types.py,sha256=
|
|
18
|
+
ess/reduce/nexus/types.py,sha256=vTQD4oQ5JKBHAYy9LWFICSo-dhVi3wX5IinMgjRDtF8,9806
|
|
19
19
|
ess/reduce/nexus/workflow.py,sha256=EiD6-58eGwoN5fbo47UTZy_oYFitCbwlIH-xqDOSp4c,24326
|
|
20
20
|
ess/reduce/scripts/grow_nexus.py,sha256=hET3h06M0xlJd62E3palNLFvJMyNax2kK4XyJcOhl-I,3387
|
|
21
21
|
ess/reduce/time_of_flight/__init__.py,sha256=TSHfyoROwFhM2k3jHzamw3zeb0OQOaiuvgCgDEPEQ_g,1097
|
|
22
22
|
ess/reduce/time_of_flight/eto_to_tof.py,sha256=Nq2gx7aejoZ_ExLTr9I6KZMqDxCKAx1PpGHslpNXkKU,25271
|
|
23
23
|
ess/reduce/time_of_flight/fakes.py,sha256=REyHkJsSSq2_l5UOtpsv2aKkhCuro_i3KpVsxxITbW0,4470
|
|
24
|
-
ess/reduce/time_of_flight/interpolator_numba.py,sha256=
|
|
24
|
+
ess/reduce/time_of_flight/interpolator_numba.py,sha256=AgB2R8iw-IOb3YXLWTQVBflhWq5qgb7aqfvDExwLRW8,4682
|
|
25
25
|
ess/reduce/time_of_flight/interpolator_scipy.py,sha256=sRJj2ncBiUMv6g9h-MJzI9xyY0Ir0degpAv6FIeSMBw,1834
|
|
26
26
|
ess/reduce/time_of_flight/simulation.py,sha256=cIF_nWkLQlcWUCW2_wvWBU2ocg_8CSfOnfkoqdLdUgs,2923
|
|
27
27
|
ess/reduce/time_of_flight/to_events.py,sha256=w9mHpnWd3vwN2ouob-GK_1NPrTjCaOzPuC2QuEey-m0,4342
|
|
@@ -38,9 +38,9 @@ ess/reduce/widgets/_spinner.py,sha256=2VY4Fhfa7HMXox2O7UbofcdKsYG-AJGrsgGJB85nDX
|
|
|
38
38
|
ess/reduce/widgets/_string_widget.py,sha256=iPAdfANyXHf-nkfhgkyH6gQDklia0LebLTmwi3m-iYQ,1482
|
|
39
39
|
ess/reduce/widgets/_switchable_widget.py,sha256=fjKz99SKLhIF1BLgGVBSKKn3Lu_jYBwDYGeAjbJY3Q8,2390
|
|
40
40
|
ess/reduce/widgets/_vector_widget.py,sha256=aTaBqCFHZQhrIoX6-sSqFWCPePEW8HQt5kUio8jP1t8,1203
|
|
41
|
-
essreduce-25.4.
|
|
42
|
-
essreduce-25.4.
|
|
43
|
-
essreduce-25.4.
|
|
44
|
-
essreduce-25.4.
|
|
45
|
-
essreduce-25.4.
|
|
46
|
-
essreduce-25.4.
|
|
41
|
+
essreduce-25.4.1.dist-info/licenses/LICENSE,sha256=nVEiume4Qj6jMYfSRjHTM2jtJ4FGu0g-5Sdh7osfEYw,1553
|
|
42
|
+
essreduce-25.4.1.dist-info/METADATA,sha256=_E84IwG_gnTsMoorflvf6T4K5oJB7IjpsUUTB4bhVh8,3768
|
|
43
|
+
essreduce-25.4.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
44
|
+
essreduce-25.4.1.dist-info/entry_points.txt,sha256=PMZOIYzCifHMTe4pK3HbhxUwxjFaZizYlLD0td4Isb0,66
|
|
45
|
+
essreduce-25.4.1.dist-info/top_level.txt,sha256=0JxTCgMKPLKtp14wb1-RKisQPQWX7i96innZNvHBr-s,4
|
|
46
|
+
essreduce-25.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|