Skip to content
Snippets Groups Projects
Commit 816e53d8 authored by pswain's avatar pswain
Browse files

added error message to tiler.get_channel_index

parent 31f64e47
No related branches found
No related tags found
No related merge requests found
...@@ -122,6 +122,7 @@ class TrapLocations: ...@@ -122,6 +122,7 @@ class TrapLocations:
Stores each trap as an instance of Trap. Stores each trap as an instance of Trap.
Traps can be iterated. Traps can be iterated.
""" """
def __init__( def __init__(
self, initial_location, tile_size, max_size=1200, drifts=None self, initial_location, tile_size, max_size=1200, drifts=None
): ):
...@@ -558,6 +559,7 @@ class Tiler(ProcessABC): ...@@ -558,6 +559,7 @@ class Tiler(ProcessABC):
for i, ch in enumerate(self.channels): for i, ch in enumerate(self.channels):
if item in ch: if item in ch:
return i return i
raise Exception(item + " not found. Check parameters sent to Tiler.")
### ###
......
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