Skip to content

Commit

Permalink
wrapper script fix - indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Nov 20, 2024
1 parent 15c94c8 commit abaa95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/sample-each-dataset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit abaa95b

Please sign in to comment.