From 809e9b8acf2d469094b6085879b434104d4c7771 Mon Sep 17 00:00:00 2001 From: chuan-wang Date: Mon, 15 Apr 2024 15:50:10 +0200 Subject: [PATCH] Small refactor --- scripts/index_distance_checker.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/index_distance_checker.py b/scripts/index_distance_checker.py index fd7a45a2..3dd19deb 100644 --- a/scripts/index_distance_checker.py +++ b/scripts/index_distance_checker.py @@ -194,6 +194,10 @@ def verify_orientation(data): ) flag_idx_search = True break + elif flag_first_sample != flag_last_sample: + message.append(f"Inconsistent Index pattern detected for pool {p}") + flag_idx_search = True + break if not flag_idx_search: message.append( f"Unable to find matched index set to check orientation for pool {p}"