From e00e578d1a8ce55e3371deca924d07ab01bae807 Mon Sep 17 00:00:00 2001 From: pswain <peter.swain@ed.ac.uk> Date: Fri, 16 Feb 2024 11:23:20 +0000 Subject: [PATCH] change(tiler): channels can be strings --- src/aliby/tile/tiler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/aliby/tile/tiler.py b/src/aliby/tile/tiler.py index b35ca5c..bee4266 100644 --- a/src/aliby/tile/tiler.py +++ b/src/aliby/tile/tiler.py @@ -554,6 +554,13 @@ class Tiler(StepABC): channels = [0] elif isinstance(channels, str): channels = [channels] + # convert to indices + channels = [ + self.channels.index(channel) + if isinstance(channel, str) + else channel + for channel in channels + ] # get the data as a list of length of the number of channels res = [] for c in channels: -- GitLab