Skip to content

Commit

Permalink
remover superfluous squeeze
Browse files Browse the repository at this point in the history
  • Loading branch information
gfardell authored Aug 19, 2024
1 parent b2d5ca6 commit f98508b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wrappers/Python/cil/framework/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -3813,7 +3813,7 @@ def __init__(self,
else:
raise TypeError('array must be a CIL type DataContainer or numpy.ndarray got {}'.format(type(array)))

if numpy.squeeze(array).shape != geometry.shape:
if array.shape != geometry.shape:
raise ValueError('Shape mismatch got {} expected {}'.format(array.shape, geometry.shape))

super(AcquisitionData, self).__init__(array, deep_copy, geometry=geometry,**kwargs)
Expand Down

0 comments on commit f98508b

Please sign in to comment.