Dear Nico,
as discussed, I am sending you an example of a bad sinusoidal fit which nonetheless has about the right frequency.
Thanks a lot that you are still open to work on your code.
I am not sure what files you need. I renamed the .dat file as .txt so I can attach it. Please let know in case this didn't work or you need something else.
Armin
PS: how do I add a bug label or do only you do that?
Edit: Initially, I accidentally attached a fit which worked quite good ;)

2020_06_18_1017_100s_comp_tilt9_DC4_scan_sine_fit_functions.txt
2020_06_18_1017_100s_comp_tilt9_DC4_scan_sine - Copy.txt
Dear Nico,
as discussed, I am sending you an example of a bad sinusoidal fit which nonetheless has about the right frequency.
Thanks a lot that you are still open to work on your code.
I am not sure what files you need. I renamed the .dat file as .txt so I can attach it. Please let know in case this didn't work or you need something else.
Armin
PS: how do I add a bug label or do only you do that?
Edit: Initially, I accidentally attached a fit which worked quite good ;)
2020_06_18_1017_100s_comp_tilt9_DC4_scan_sine_fit_functions.txt
2020_06_18_1017_100s_comp_tilt9_DC4_scan_sine - Copy.txt