Skip to content

Commit

Permalink
Update Wrappers/Python/cil/framework/framework.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gemma Fardell <47746591+gfardell@users.noreply.github.com>
Signed-off-by: Margaret Duff <43645617+MargaretDuff@users.noreply.github.com>
  • Loading branch information
MargaretDuff and gfardell authored Aug 24, 2023
1 parent 3fd963c commit 79e63e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Wrappers/Python/cil/framework/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 79e63e4

Please sign in to comment.