Skip to content
Snippets Groups Projects
Commit 515323ab authored by Alán Muñoz's avatar Alán Muñoz
Browse files

fix(extractor): refactored traps and tiles

parent 54a75131
No related branches found
No related tags found
No related merge requests found
......@@ -500,7 +500,7 @@ class Extractor(ProcessABC):
self.img_bgsub = {}
for ch, red_metrics in tree.items():
# NB ch != is necessary for threading
if ch != "general" and tiles is not None and len(traps):
if ch != "general" and tiles is not None and len(tiles):
# image data for all traps and z sections for a particular channel
# as an array arranged as (no traps, X, Y, no Z channels)
img = tiles[:, tree_chs.index(ch), 0]
......
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