After clicking the optimize position of crosshair, it was doing the scan but not able to locate the brightest spot inside the poi area as it was not able to do the gaussian fit.
Here is the error message:
`Traceback (most recent call last):
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 345, in make_gaussian_fit
result = mod_final.fit(data, x=x_axis, params=params, **kwargs)
File "C:\Users\SingleNV\anaconda3\lib\site-packages\lmfit\model.py", line 1162, in fit
raise ValueError(f"'Missing independent variable '{var}'")
ValueError: 'Missing independent variable 'xx'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\optimizer_logic.py", line 449, in do_z_optimization
result = self._fit_logic.make_gaussianlinearoffset_fit(
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 511, in make_gaussianlinearoffset_fit
error, params = estimator(x_axis, data, params)
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 571, in estimate_gaussianlinearoffset_peak
res_ordinary_gauss = self.make_gaussian_fit(
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 348, in make_gaussian_fit
'message: {0}\n'.format(result.message))
UnboundLocalError: local variable 'result' referenced before assignment`
After clicking the optimize position of crosshair, it was doing the scan but not able to locate the brightest spot inside the poi area as it was not able to do the gaussian fit.
Here is the error message:
`Traceback (most recent call last):
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 345, in make_gaussian_fit
File "C:\Users\SingleNV\anaconda3\lib\site-packages\lmfit\model.py", line 1162, in fit
ValueError: 'Missing independent variable 'xx'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\optimizer_logic.py", line 449, in do_z_optimization
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 511, in make_gaussianlinearoffset_fit
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 571, in estimate_gaussianlinearoffset_peak
File "D:\OneDrive\Desktop\Qudi_new\Qudi\qudi\logic\fitmethods\gaussianlikemethods.py", line 348, in make_gaussian_fit
UnboundLocalError: local variable 'result' referenced before assignment`