Essreduce + Essimaging + Essnmx: tofectomy#65
Conversation
… want to convert to tof only inside the interpolator
| ) | ||
|
|
||
|
|
||
| class WavelengthInterpolator: |
There was a problem hiding this comment.
I'd prefer that we keep the WavelengthInterpolator but when calling the InterpolatorImpl we pass lookup.data.values * self._distance_edges and in WavelengthInterpolator.__call__ we return
values=self._interpolator(...) / ltotal (but making that operation in-place is probably better).
Then I don't think we have to make other changes elsewhere or re-introduce tof, right?
There was a problem hiding this comment.
Yes, I thought about it some more, and basically did just what you suggest here.
|
@YooSunYoung can you take a look to make sure I didn't mess up anything in |
|
A final thought (in the context of breaking changes): Do we want to make it compatible with old lookup tables that stored tof instead of wavelength? But it may make things confusing that the files are still called something with |
| ) | ||
|
|
||
|
|
||
| def test_compute_toa(): |
There was a problem hiding this comment.
We leave this out for now. Time of arrival should instead be computed from event_time_zero and event_time_offset (see scipp/scippneutron#685)
| @@ -570,109 +601,13 @@ def monitor_time_of_flight_data( | |||
| ) | |||
|
|
|||
|
|
|||
| def detector_time_of_arrival_data( | |||
There was a problem hiding this comment.
This should be computed from event_time_zero + event_time_offset using Scippneutron instead: scipp/scippneutron#685
This was computing some strange unwrapped arrival time offset, but it cannot be used to trace back what the time was at sample. The name is confusing, so we remove it for now (it wasn't used by anything so far).
|
It seems fine with NMX...! |
It would be nicer to have a clean break without adding the complexity of having a fallback for old tables, if we can get away with it, and I think we can. |
Replacing
time-of-flightwithwavelengthin theGenericTofWorkflow, which is now calledGenericUnwrapWorkflow.Note: once this is merged, every package using the
GenericTofWorkflownot in the monorepo will break...