From c0debe3e687b975b6eb5aa6e3683b381474d1a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <alan.munoz@ed.ac.uk> Date: Sat, 7 Jan 2023 00:37:03 +0000 Subject: [PATCH] [WIP]feat(extraction): support metaless channels --- src/extraction/core/functions/defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extraction/core/functions/defaults.py b/src/extraction/core/functions/defaults.py index 5d57dc62..84798680 100644 --- a/src/extraction/core/functions/defaults.py +++ b/src/extraction/core/functions/defaults.py @@ -55,7 +55,7 @@ def exparams_from_meta( extant_fluorescence_ch = [] for av_channel in candidate_channels: # Find channels in metadata whose names match - found_channel = find_channel_name(meta["channels"], av_channel) + found_channel = find_channel_name(meta.get("channels", []), av_channel) if found_channel is not None: extant_fluorescence_ch.append(found_channel) -- GitLab