Skip to content
Snippets Groups Projects
Commit 826190c0 authored by Marius Retegan's avatar Marius Retegan
Browse files

Fix scans size check

parent f66b58e7
No related branches found
No related tags found
No related merge requests found
Pipeline #210129 passed
......@@ -418,7 +418,7 @@ class Scans:
mean = np.mean(sizes)
std = np.std(sizes)
if len([abs(mean - size) > std for size in sizes]) > 0:
if any(abs(size - mean) > std for size in sizes):
logger.warning(
"The number of points in the selected scans have a "
"large spread (mean = %.2f, standard deviation: %.2f).",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment