Chriscrossing / PhotonicsLabCharicterisationGUI

GNU Lesser General Public License v3.0
0 stars 0 forks source link

Resolution bug #5

Closed Chriscrossing closed 1 year ago

Chriscrossing commented 2 years ago

Seems to be some sort of rounding error in the GUI saving functions, where everything is rounded to 1pico-meter. Initially, I thought this was a bug with scanning faster than the PM100D analogue output could handle but when re-making the wavelength array using np.linspace() it produces a reasonable spectra.

Here is the spectra strait from the .csv file:- bug

Here is the spectra after remaking the wavelength array:- fixed

Chriscrossing commented 2 years ago

I bet I just beefed up the saving function somewhere

Chriscrossing commented 1 year ago

Found the error, in the initialization of the wavelength array, I had initially rounded the array to 3dp due to the TLS having a issue with strings passed to it with more than 3dp (because it only has pico-meter resolution) so I've removed that code for the continuous scanning function.