essreduce 25.1.1__py3-none-any.whl → 25.2.0__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.
@@ -48,17 +48,6 @@ class SimulationResults:
48
48
  distance: sc.Variable
49
49
 
50
50
 
51
- @dataclass
52
- class FastestNeutron:
53
- """
54
- Properties of the fastest neutron in the simulation results.
55
- """
56
-
57
- time_of_arrival: sc.Variable
58
- speed: sc.Variable
59
- distance: sc.Variable
60
-
61
-
62
51
  LtotalRange = NewType("LtotalRange", tuple[sc.Variable, sc.Variable])
63
52
  """
64
53
  Range (min, max) of the total length of the flight path from the source to the detector.
@@ -79,10 +68,16 @@ Should be a single scalar value with a unit of length.
79
68
  This is typically of the order of 1-10 cm.
80
69
  """
81
70
 
82
- TimeOfArrivalResolution = NewType("TimeOfArrivalResolution", int | sc.Variable)
71
+ TimeResolution = NewType("TimeResolution", sc.Variable)
83
72
  """
84
- Resolution of the time of arrival axis in the lookup table.
85
- Can be an integer (number of bins) or a sc.Variable (bin width).
73
+ Step size of the event_time_offset axis in the lookup table.
74
+ This is basically the 'time-of-flight' resolution of the detector.
75
+ Should be a single scalar value with a unit of time.
76
+ This is typically of the order of 0.1-0.5 ms.
77
+
78
+ Since the event_time_offset range needs to span exactly one pulse period, the final
79
+ resolution in the lookup table will be at least the supplied value here, but may be
80
+ smaller if the pulse period is not an integer multiple of the time resolution.
86
81
  """
87
82
 
88
83
  TimeOfFlightLookupTable = NewType("TimeOfFlightLookupTable", sc.DataArray)
@@ -90,48 +85,12 @@ TimeOfFlightLookupTable = NewType("TimeOfFlightLookupTable", sc.DataArray)
90
85
  Lookup table giving time-of-flight as a function of distance and time of arrival.
91
86
  """
92
87
 
93
- MaskedTimeOfFlightLookupTable = NewType("MaskedTimeOfFlightLookupTable", sc.DataArray)
94
- """
95
- Lookup table giving time-of-flight as a function of distance and time of arrival, with
96
- regions of large uncertainty masked out.
97
- """
98
-
99
88
  LookupTableRelativeErrorThreshold = NewType("LookupTableRelativeErrorThreshold", float)
100
-
101
- FramePeriod = NewType("FramePeriod", sc.Variable)
102
89
  """
103
- The period of a frame, a (small) integer multiple of the source period.
90
+ Threshold for the relative standard deviation (coefficient of variation) of the
91
+ projected time-of-flight above which values are masked.
104
92
  """
105
93
 
106
- UnwrappedTimeOfArrival = NewType("UnwrappedTimeOfArrival", sc.Variable)
107
- """
108
- Time of arrival of the neutron at the detector, unwrapped at the pulse period.
109
- """
110
-
111
- PivotTimeAtDetector = NewType("PivotTimeAtDetector", sc.Variable)
112
- """
113
- Pivot time at the detector, i.e., the time of the start of the frame at the detector.
114
- """
115
-
116
- UnwrappedTimeOfArrivalMinusPivotTime = NewType(
117
- "UnwrappedTimeOfArrivalMinusPivotTime", sc.Variable
118
- )
119
- """
120
- Time of arrival of the neutron at the detector, unwrapped at the pulse period, minus
121
- the start time of the frame.
122
- """
123
-
124
- TimeOfArrivalMinusPivotTimeModuloPeriod = NewType(
125
- "TimeOfArrivalMinusPivotTimeModuloPeriod", sc.Variable
126
- )
127
- """
128
- Time of arrival of the neutron at the detector minus the start time of the frame,
129
- modulo the frame period.
130
- """
131
-
132
- FrameFoldedTimeOfArrival = NewType("FrameFoldedTimeOfArrival", sc.Variable)
133
-
134
-
135
94
  PulsePeriod = NewType("PulsePeriod", sc.Variable)
136
95
  """
137
96
  Period of the source pulses, i.e., time between consecutive pulse starts.
@@ -144,7 +103,8 @@ Stride of used pulses. Usually 1, but may be a small integer when pulse-skipping
144
103
 
145
104
  PulseStrideOffset = NewType("PulseStrideOffset", int)
146
105
  """
147
- When pulse-skipping, the offset of the first pulse in the stride.
106
+ When pulse-skipping, the offset of the first pulse in the stride. This is typically
107
+ zero but can be a small integer < pulse_stride.
148
108
  """
149
109
 
150
110
  RawData = NewType("RawData", sc.DataArray)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: essreduce
3
- Version: 25.1.1
3
+ Version: 25.2.0
4
4
  Summary: Common data reduction tools for the ESS facility
5
5
  Author: Scipp contributors
6
6
  License: BSD 3-Clause License
@@ -3,26 +3,27 @@ ess/reduce/data.py,sha256=vaoeAJ6EpK1YghOiAALLdWiW17TgUnnnt0H-RGiGzXk,3756
3
3
  ess/reduce/logging.py,sha256=6n8Czq4LZ3OK9ENlKsWSI1M3KvKv6_HSoUiV4__IUlU,357
4
4
  ess/reduce/parameter.py,sha256=4sCfoKOI2HuO_Q7JLH_jAXnEOFANSn5P3NdaOBzhJxc,4635
5
5
  ess/reduce/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- ess/reduce/streaming.py,sha256=nEO1Xg6LbQ36F44UaVmSNe2MSWmpwz97y9tnlc-z0zA,7493
6
+ ess/reduce/streaming.py,sha256=-ffg5pq0ShVPatLzHqKfWU-qpYmuYZjOrwoKd8J4aJU,9129
7
7
  ess/reduce/ui.py,sha256=zmorAbDwX1cU3ygDT--OP58o0qU7OBcmJz03jPeYSLA,10884
8
8
  ess/reduce/uncertainty.py,sha256=LR4O6ApB6Z-W9gC_XW0ajupl8yFG-du0eee1AX_R-gk,6990
9
9
  ess/reduce/workflow.py,sha256=sL34T_2Cjl_8iFlegujxI9VyOUwo6erVC8pOXnfWgYw,3060
10
10
  ess/reduce/live/__init__.py,sha256=jPQVhihRVNtEDrE20PoKkclKV2aBF1lS7cCHootgFgI,204
11
- ess/reduce/live/raw.py,sha256=W9fv0zaRqC6PFB5DYGAI1BK-zMgX73h5JHANKu-sMl4,19438
11
+ ess/reduce/live/raw.py,sha256=o1Q3t07qPPncCMtZOk6x17OUzhWFXGfy4WeO0YGEw4Y,24997
12
+ ess/reduce/live/roi.py,sha256=6EwQNjGLk5y2zwI99YIVw6Q7si7U25Ou_IM_kLfkkAU,3719
12
13
  ess/reduce/live/workflow.py,sha256=bsbwvTqPhRO6mC__3b7MgU7DWwAnOvGvG-t2n22EKq8,4285
13
14
  ess/reduce/nexus/__init__.py,sha256=PxJkhlGcFRzVU4SICBhymK5_5FjM5oXPZ8YUpd0v1pE,967
14
- ess/reduce/nexus/_nexus_loader.py,sha256=otc0qEjGD5K8xFLbn_RYAble34NoDhxLaazE0LAvySE,17911
15
+ ess/reduce/nexus/_nexus_loader.py,sha256=NbKIepTxv-UirVlViImh8Ozm16k-ZIiF6AQ9-oKuDHU,19222
15
16
  ess/reduce/nexus/json_generator.py,sha256=ME2Xn8L7Oi3uHJk9ZZdCRQTRX-OV_wh9-DJn07Alplk,2529
16
17
  ess/reduce/nexus/json_nexus.py,sha256=QrVc0p424nZ5dHX9gebAJppTw6lGZq9404P_OFl1giA,10282
17
18
  ess/reduce/nexus/types.py,sha256=Az_pZtaTIlEAA4Po_YOLabez8w4HeHcr0asY3rS6BXg,9676
18
19
  ess/reduce/nexus/workflow.py,sha256=jzdh0ubp9Mmb98a04KIeM8Xo9bpAqpnsfwFWz2VllnQ,23676
19
20
  ess/reduce/scripts/grow_nexus.py,sha256=hET3h06M0xlJd62E3palNLFvJMyNax2kK4XyJcOhl-I,3387
20
- ess/reduce/time_of_flight/__init__.py,sha256=buqd_rvHvdeO3BTZLf_rKGAFwfJgd6ixAAsxRU_-kik,1546
21
- ess/reduce/time_of_flight/fakes.py,sha256=cyo6eYn0nOy3Dt1iDge7utkUrSGU-OpZ5g73-DGJsyw,7583
22
- ess/reduce/time_of_flight/simulation.py,sha256=Tn4kRkXisWjA4ss4AXVshfa9gga0GFOXqtABjRru2MI,2488
23
- ess/reduce/time_of_flight/to_events.py,sha256=hXTyc_o6qQc2KDurUM55Kb-5VS-VrB9lE5H_R6vAfYM,4115
24
- ess/reduce/time_of_flight/toa_to_tof.py,sha256=_aQiXqO5LeeBePZcZv_f5VhkreH9NDwFQfDsbe275xI,19505
25
- ess/reduce/time_of_flight/types.py,sha256=JIAvdBF61wESKoxl1vHmks_udNfT2dlrOxHKOBjFCzg,5888
21
+ ess/reduce/time_of_flight/__init__.py,sha256=VJWy8kXJ-QaVWWed7C9rLhCpZ7MrkXuv9-8cV-U7TQ4,1098
22
+ ess/reduce/time_of_flight/fakes.py,sha256=UyYxvtnb8QDdCgwaOhe0guRGCKP1DFr0wPXUPO3RNYU,6730
23
+ ess/reduce/time_of_flight/simulation.py,sha256=CireE9m9kFbUXhGUeY2L3SoMy7kpqopxKj__h4tSKzo,2614
24
+ ess/reduce/time_of_flight/to_events.py,sha256=_5CcUOWvguDcK8uo2pPZWzXnWoiZhC1w-zF8xysaIvU,4339
25
+ ess/reduce/time_of_flight/toa_to_tof.py,sha256=crvNe6GIwHLrSUE_C3omDfroIujoH1rphwWhX8Dj25U,20601
26
+ ess/reduce/time_of_flight/types.py,sha256=fIgnLKv6QolevXwrY5hD2-eC_7wtNlVJ-k6CvaeRJQk,5014
26
27
  ess/reduce/widgets/__init__.py,sha256=wk5ihxvtZHqkp2EYVtbJr1Es0lw69KQpyTSaizNgWjU,5326
27
28
  ess/reduce/widgets/_base.py,sha256=_wN3FOlXgx_u0c-A_3yyoIH-SdUvDENGgquh9S-h5GI,4852
28
29
  ess/reduce/widgets/_binedges_widget.py,sha256=ZCQsGjYHnJr9GFUn7NjoZc1CdsnAzm_fMzyF-fTKKVY,2785
@@ -35,9 +36,9 @@ ess/reduce/widgets/_spinner.py,sha256=2VY4Fhfa7HMXox2O7UbofcdKsYG-AJGrsgGJB85nDX
35
36
  ess/reduce/widgets/_string_widget.py,sha256=iPAdfANyXHf-nkfhgkyH6gQDklia0LebLTmwi3m-iYQ,1482
36
37
  ess/reduce/widgets/_switchable_widget.py,sha256=fjKz99SKLhIF1BLgGVBSKKn3Lu_jYBwDYGeAjbJY3Q8,2390
37
38
  ess/reduce/widgets/_vector_widget.py,sha256=aTaBqCFHZQhrIoX6-sSqFWCPePEW8HQt5kUio8jP1t8,1203
38
- essreduce-25.1.1.dist-info/LICENSE,sha256=nVEiume4Qj6jMYfSRjHTM2jtJ4FGu0g-5Sdh7osfEYw,1553
39
- essreduce-25.1.1.dist-info/METADATA,sha256=mjZuI2PH5ONZej_X6h-FCcEUOu70Qh8sxwaWLUL5gH0,3708
40
- essreduce-25.1.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
41
- essreduce-25.1.1.dist-info/entry_points.txt,sha256=PMZOIYzCifHMTe4pK3HbhxUwxjFaZizYlLD0td4Isb0,66
42
- essreduce-25.1.1.dist-info/top_level.txt,sha256=0JxTCgMKPLKtp14wb1-RKisQPQWX7i96innZNvHBr-s,4
43
- essreduce-25.1.1.dist-info/RECORD,,
39
+ essreduce-25.2.0.dist-info/LICENSE,sha256=nVEiume4Qj6jMYfSRjHTM2jtJ4FGu0g-5Sdh7osfEYw,1553
40
+ essreduce-25.2.0.dist-info/METADATA,sha256=43hbId31E_VE73MQpwhFxaBgLsHuzx_rI2RQg1IBtSI,3708
41
+ essreduce-25.2.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
42
+ essreduce-25.2.0.dist-info/entry_points.txt,sha256=PMZOIYzCifHMTe4pK3HbhxUwxjFaZizYlLD0td4Isb0,66
43
+ essreduce-25.2.0.dist-info/top_level.txt,sha256=0JxTCgMKPLKtp14wb1-RKisQPQWX7i96innZNvHBr-s,4
44
+ essreduce-25.2.0.dist-info/RECORD,,