From 79e63e4abe9349b015be828dfb8b7f0b3a2ee5e0 Mon Sep 17 00:00:00 2001 From: Margaret Duff <43645617+MargaretDuff@users.noreply.github.com> Date: Thu, 24 Aug 2023 16:40:21 +0100 Subject: [PATCH] Update Wrappers/Python/cil/framework/framework.py Co-authored-by: Gemma Fardell <47746591+gfardell@users.noreply.github.com> Signed-off-by: Margaret Duff <43645617+MargaretDuff@users.noreply.github.com> --- Wrappers/Python/cil/framework/framework.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Wrappers/Python/cil/framework/framework.py b/Wrappers/Python/cil/framework/framework.py index c526b08e97..d05da2e89d 100644 --- a/Wrappers/Python/cil/framework/framework.py +++ b/Wrappers/Python/cil/framework/framework.py @@ -2135,11 +2135,11 @@ def dimension_labels(self): #remove from list labels where len == 1 # for i, x in enumerate(shape_default): - if x == 0 or x==1: - try: - labels.remove(labels_default[i]) - except ValueError: - pass #if not in custom list carry on + if x == 0 or x==1: + try: + labels.remove(labels_default[i]) + except ValueError: + pass #if not in custom list carry on return tuple(labels)