Skip to content

Commit 1e90200

Browse files
allow wkcuber.tile_cubing to use zero indexed tile locations (#823)
when using the --input_path_pattern option removes an assert that failed only when an index was zero importing with zero indexed paths where eg. {z}/{x}_{y}.tiff is in the range of [1..99]/[0..8]_[0..7].tiff would fail as the assert would trigger importing a zero indexed works fine with this assert removed, there is no reason to require this to not be zero
1 parent 1986ec3 commit 1e90200

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

wkcuber/wkcuber/tile_cubing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ def detect_interval_for_dimensions(
145145
idx : idx + current_decimal_length[current_dimension]
146146
]
147147
coordinate_value = int(coordinate_value_str)
148-
assert coordinate_value
149148
min_dimensions[current_dimension] = min(
150149
min_dimensions.get(current_dimension, coordinate_value),
151150
coordinate_value,

0 commit comments

Comments
 (0)