OxfordIonTrapGroup / oitg

Python package of helper routines (result loading, fitting, etc) for the Oxford Ion-Trap Group (OITG).
https://oxfordiontrapgroup.github.io/oitg/
13 stars 9 forks source link

v_function: improve heuristics #41

Open hartytp opened 2 years ago

hartytp commented 2 years ago

The heuristics for v_function are currently not great.

Thoughts

I'd be interested in input on better ideas if people have them?

pathfinder49 commented 2 years ago

Sounds good to me. Some thoughts:

hartytp commented 2 years ago

I imagine you could find the sign more robustly using y(x_min), y(x_max), max(y) and min(y).

Can you sketch out what you had in mind? I agree there should be a good solution here but don't quite see it.

Maybe keep the two graidients as derived parameters for better back compatibility

:+1: