From f5cb7fe28e0de3c3ae9d7053a4af326300fd52e3 Mon Sep 17 00:00:00 2001 From: arnaudbore Date: Mon, 11 Nov 2024 10:11:04 -0500 Subject: [PATCH] add condition, make sure tag exists --- dcm2bids/sidecar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dcm2bids/sidecar.py b/dcm2bids/sidecar.py index 0cb7ba07..f397e3fd 100644 --- a/dcm2bids/sidecar.py +++ b/dcm2bids/sidecar.py @@ -396,7 +396,7 @@ def compare_float(name, pattern): elif isinstance(name, list): result.append(compare_list(name, pattern)) - else: + elif name: result.append(compare(name, pattern)) return all(result)