Commit 761d5dc1 authored by whooie's avatar whooie
Browse files

fit gaussian by linear least squares for mot number

parent 7939cb8b
......@@ -166,10 +166,14 @@ class FluorescenceData(ImagingData):
50e6 * 2 * np.pi,
0.1
)
sx, sy = fit_gaussian(array, _dA)
sx, sy = _fit_gaussian(array, _dA)
self.results = dict() if self.results is None else self.results
self.results.update(
{f"N ({label})": N, f"sx ({label})": sx, f"sy ({label})": sy}
{
f"N ({label})": float(N),
f"sx ({label})": float(sx),
f"sy ({label})": float(sy)
}
)
return self
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment