Skip to content

Commit

Permalink
Fix #241
Browse files Browse the repository at this point in the history
  • Loading branch information
AnderBiguri committed Jan 28, 2021
1 parent 28332a3 commit c311c36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Python/tigre/utilities/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ def __check_and_repmat__(self, attrib, angles):

elif type(old_attrib) == np.ndarray:
if old_attrib.ndim == 1:
if old_attrib.shape in [(3,), (2,), (1,)]:
if old_attrib.shape in [(3,), (2,)] and not attrib in ['DSD', 'DSO', 'COR']:
new_attrib = matlib.repmat(old_attrib, angles.shape[0], 1)
setattr(self, attrib, new_attrib)
elif old_attrib.shape in [(1,)]:
new_attrib = matlib.repmat(old_attrib, angles.shape[0], 1)
setattr(self, attrib, new_attrib)
elif old_attrib.shape == (angles.shape[0],):
Expand Down

0 comments on commit c311c36

Please sign in to comment.