Skip to content

Commit

Permalink
Merge pull request dipy#3279 from skoudoro/fix-cython-error
Browse files Browse the repository at this point in the history
FIX: Explicit type origin for long to solve the cython error during compilation
  • Loading branch information
Garyfallidis authored Jul 4, 2024
2 parents 296eab8 + 5102cd9 commit e47508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dipy/denoise/enhancement_kernel.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ cdef class EnhancementKernel:
if isinstance(orientations, Sphere):
# use the sphere defined by the user
sphere = orientations
elif isinstance(orientations, (int, long, float)):
elif isinstance(orientations, (int, float)):
# electrostatic repulsion based on number of orientations
n_pts = int(orientations)
if n_pts == 0:
Expand Down

0 comments on commit e47508c

Please sign in to comment.