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

fitting (linear): fix indexing #42

Open drewrisinger opened 2 years ago

drewrisinger commented 2 years ago

The linear fitting function used 1-indexed array notation instead of the Python-default 0-indexing. We discovered this by ending up with a divide-by-zero error when our x-values were roughly set to [0, 1], so the two 1 values were subtracted from each other.