From abaa95b2c3083d91c8ca37c73572f1b2bd2eb8df Mon Sep 17 00:00:00 2001 From: ric-evans Date: Wed, 20 Nov 2024 15:27:18 -0600 Subject: [PATCH] wrapper script fix - indexing --- resources/sample-each-dataset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/sample-each-dataset.sh b/resources/sample-each-dataset.sh index e8edb6e..a6ef73e 100755 --- a/resources/sample-each-dataset.sh +++ b/resources/sample-each-dataset.sh @@ -69,7 +69,7 @@ try: base_index = list(path.parts).index(SIM) except ValueError: raise ValueError(f'Path {path} does not contain the base identifier {SIM}/') -segments_after_base = path_parts[base_index + 1:] +segments_after_base = path.parts[base_index + 1:] depth = N_SEGMENTS_BASE_TO_DATASET - len(segments_after_base) if depth < 0: