From 3e3081f05e81986d46a4df5c136f857b68ca88fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk>
Date: Mon, 28 Mar 2022 17:15:47 +0100
Subject: [PATCH] cleanup

---
 aliby/pipeline.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/aliby/pipeline.py b/aliby/pipeline.py
index 63da24fb..7011aa99 100644
--- a/aliby/pipeline.py
+++ b/aliby/pipeline.py
@@ -310,7 +310,6 @@ class Pipeline(ProcessABC):
                         try:
                             with h5py.File(filename, "r") as f:
                                 steps["tiler"] = Tiler.from_hdf5(image, filename)
-                                # s = Signal(filename)
 
                                 legacy_get_last_tp = (
                                     {  # Function to support seg in ver < 0.24
@@ -428,9 +427,8 @@ class Pipeline(ProcessABC):
                     av_channels_wsub = av_channels.union(
                         [c + "_bgsub" for c in config["extraction"]["sub_bg"]]
                     )
-                    for op, (input_ch, op_id, red_ext) in copy(
-                        config["extraction"]["multichannel_ops"]
-                    ).items():
+                    tmp = copy(config["extraction"]["multichannel_ops"])
+                    for op, (input_ch, op_id, red_ext) in tmp.items():
                         if set(input_ch).difference(av_channels_wsub):
                             del config["extraction"]["multichannel_ops"][op]
 
-- 
GitLab