Commit 2b42828b authored by Wallenfang, Nils's avatar Wallenfang, Nils

Merge branch 'pixel_filtering' into 'master'


See merge request !7
parents 8eec51f0 0a20fd2d
......@@ -165,11 +165,15 @@ class SineCheck(QualityCheck):
# ignore this sample
filtered_coords.append(coords[i])
continue
if fit.mean > 2000:
elif fit.mean > 2000:
# very bright, likely to be outside of tissue
# ignore this sample
filtered_coords.append(coords[i])
continue
elif fit.mean / fit.amplitude > 30:
# ratio between mean and amplitude is too high -> too little signal
filtered_coords.append(coords[i])
continue
error = self.measure_func(sample, fit)
errors.append(error)
......
......@@ -235,7 +235,7 @@ def process_quality_check(frame, tiff_path, logger_path):
nonlocal number_of_outliers
number_of_outliers += 1
frame.print(
f'Outlier: tile {x:02d}_{y:02d}{f", error:{error_measure}" if error_measure is not None else ""}')
f'Outlier: tile {x:02d}_{y:02d}{f", error:{error_measure:.2f}" if error_measure is not None else ""}')
frame.progress.update()
......
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