Commit 0c20562d authored by whooie's avatar whooie
Browse files

make debug stuff a little clearer, if less clean

parent 2764d609
......@@ -189,17 +189,20 @@ class FluorescenceData(ImagingData):
N_bkgd = compute_mot_number(
self.arrays["background"].astype(np.float64),
**compute_mot_number_params,
k=None
) if subtract_bkgd and "background" in self.arrays.keys() else 0.0
for k, (label, array) in enumerate(self.arrays.items()):
dtype_info = np.iinfo(array.dtype)
if array.max() >= (dtype_info.max - dtype_info.bits):
print(
f"[imaging] WARNING: image '{label}' may contain clipping")
# N = compute_mot_number( # debug
# array.astype(np.float64),
# **compute_mot_number_params,
# label
# )
N = compute_mot_number(
array.astype(np.float64),
**compute_mot_number_params,
k=None
)
# sx, sy = lmfit_gaussian(array, _dA, label) # debug
sx, sy = lmfit_gaussian(array, _dA)
......
Markdown is supported
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