[ENH] OWFFT: Simplify auto dx handling#810
Conversation
|
Thanks for this upgrade, @stuart-cls. It is much more convenient to use this way. I like it a lot. One addition might help reduce users' confusion. Maybe it breaks the info box standardization a bit, but it would probably be nice to notify the user that the automatically considered laser is the HeNe because there was no data about point spacing. And not just displaying the wavenumber. Even I was confused for a minute about what was happening, and I had to check the code to understand. Something like: However, the standardization of the messages is another aspect, so I don't know if it fits. @borondics always has some concepts about UI improvements, so he probably can provide some good ideas. For Document what dx is ( yes, it's the pathlength step size), can we use a |
|
Thanks, I like both these ideas. I'll add them. |
Removes special case of default HeNe (except as the original default).
...except in case of "Calculated Datapoint Spacing" NB: disabledBy doesn't work for this use-case, need enabledBy instead
87566dc to
ed64789
Compare
Couldn't get the stamper to work.
|
@ngergihun Please take another look. |
|
Hi @stuart-cls ! I guess this is because the dx_HeNe was removed and is not in the settings anymore. |
|
@ngergihun Interesting, thanks! I thought the version check would catch that but there must be some edge case I don't know about. Settings are tricky :) @markotoplak Can you take a quick look at the settings migration I'm doing? |
|
@ngergihun, did you perhaps test migration with one the workflows that was saved from this branch but before migration PR was added? That would explain the error. Otherwise, @stuart-cls, I do not understand why that code would crash. |
Ohh, yes, sorry. This was the problem. Reset widget settings solved the problem. Sorry for the false alarm. |
|
Thanks all! |

Following @ngergihun comment in #809 (comment) took the opportunity to simplify our (auto) dx handling.
dx_autowhich allows user to override any default valuedxdefault value is set from data table ifdx_autois set, otherwise it's left as a user setting.dxis present in the dataset anddx_autois set, the value falls back to our oldDEFAULT_HENEThis gets rid of a bunch of weirdness and generally lets users do what they want.
Still outstanding:
Comments welcome.