Conversation
jokasimr
left a comment
There was a problem hiding this comment.
About the name, what about WavelengthWorkflow or EstimateWavelengthWorkflow?
|
|
||
| @dataclass | ||
| class TofLookupTable: | ||
| class LookupTable: |
There was a problem hiding this comment.
What about WavelenghtLookupTable? It's a bit more specific.
I'm sure the technique packages will have other lookup tables so we will have to rename this type in the technique packages anyway. Is it easier to directly give it a specific name here instead?
There was a problem hiding this comment.
After thinking a bit more, LookupTable is probably better in this module. We can rename it in the instrument packages.
There was a problem hiding this comment.
Yes, I think that when you take the module name into account, unwrap.Lookuptable becomes specific enough.
|
|
||
| installation | ||
| tof/index | ||
| unwrap/index |
There was a problem hiding this comment.
Would it make sense to name the module wavelength instead of unwrap?
I get that wavelength is such a common variable name, that there will likely be clashes if the module is imported like from ess.reduce import wavelength but I think it is still better than unwrap because that term is a bit overloaded.
| unit=time_unit, copy=False | ||
| ) | ||
| tofs = distance / simulation.speed | ||
| # tofs = distance / simulation.speed |
There was a problem hiding this comment.
| # tofs = distance / simulation.speed |
|
There's one thing I've been thinking about related to this change, and it is that there might be a bit higher interpolation error when we interpolate wavelength instead of time-of-flight. while assuming How to fix this? If we want to fix this we don't need to change the interfaces or reintroduce |
|
It's very pleasant to review in the new monorepo :) And I like the diff! |
To get the wavelength, we are using the raw wavelengths given by the |

Replacing
time-of-flightwithwavelengthin theGenericTofWorkflow, which is now calledGenericUnwrapWorkflow.Note: once this is merged, every package using the
GenericTofWorkflownot in the monorepo will break...