Skip to content

Commit ab0bd51

Browse files
authored
Merge pull request #742 from VedangNadkarni/master
fix for #741
2 parents f04b527 + a7c1f8a commit ab0bd51

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

Python/tigre/algorithms/iterative_recon_alg.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,14 +328,10 @@ def art_data_minimizing(self):
328328

329329
for j in range(len(self.angleblocks)):
330330

331-
if self.blocksize == 1:
332-
angle = np.array([self.angleblocks[j]], dtype=np.float32)
333-
angle_indices = np.array([self.angle_index[j]], dtype=np.int32)
331+
angle = self.angleblocks[j]
332+
angle_indices = self.angle_index[j]
334333

335-
else:
336-
angle = self.angleblocks[j]
337-
angle_indices = self.angle_index[j]
338-
# slice parameters if needed
334+
# slice parameters if needed
339335
geo.offOrigin = self.geo.offOrigin[angle_indices]
340336
geo.offDetector = self.geo.offDetector[angle_indices]
341337
geo.rotDetector = self.geo.rotDetector[angle_indices]

0 commit comments

Comments
 (0)