Skip to content

Commit

Permalink
Merge pull request #169 from genusn/detector-rotation
Browse files Browse the repository at this point in the history
Fix #142
  • Loading branch information
AnderBiguri committed Jul 10, 2020
2 parents d6b9455 + 1d14d03 commit 0759c16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Python/tigre/Source/_types.pxd
Expand Up @@ -136,9 +136,9 @@ cdef inline Geometry* convert_to_c_geometry(p_geometry, int total_projections):
if not c_geom.dYaw:
raise MemoryError()
for i in range (total_projections):
c_geom.dRoll[i] = 0
c_geom.dPitch[i] = 0
c_geom.dYaw[i] = 0
c_geom.dRoll[i] = p_geometry.rotDetector[i][2]
c_geom.dPitch[i] = p_geometry.rotDetector[i][1]
c_geom.dYaw[i] = p_geometry.rotDetector[i][0]

# The base unit we are working with in mm.
c_geom.unitX = 1
Expand All @@ -160,4 +160,4 @@ cdef inline Geometry* convert_to_c_geometry(p_geometry, int total_projections):
#User option
c_geom.accuracy = p_geometry.accuracy

return c_geom
return c_geom

0 comments on commit 0759c16

Please sign in to comment.