Skip to content

Commit

Permalink
Merge pull request #1730 from skoudoro/fix-cython-pre
Browse files Browse the repository at this point in the history
[Fix] Cython syntax error
  • Loading branch information
arokem committed Feb 13, 2019
2 parents 43c8324 + 3bd7c97 commit 818658b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dipy/denoise/enhancement_kernel.pyx
Expand Up @@ -102,13 +102,13 @@ cdef class EnhancementKernel:
# if LUT exists, load
if not force_recompute and os.path.isfile(kernellutpath):
if verbose:
print "The kernel already exists. Loading from " + kernellutpath
print("The kernel already exists. Loading from " + kernellutpath)
self.lookuptable = np.load(kernellutpath)

# else, create
else:
if verbose:
print "The kernel doesn't exist yet. Computing..."
print("The kernel doesn't exist yet. Computing...")
self.create_lookup_table(verbose)
if self.sphere is not None:
np.save(kernellutpath, self.lookuptable)
Expand Down
8 changes: 4 additions & 4 deletions dipy/tracking/fbcmeasures.pyx
Expand Up @@ -91,10 +91,10 @@ cdef class FBCMeasures:
3) the relative fiber to bundle coherence (RFBC)
"""
if verbose:
print "median RFBC: " + str(np.median(self.streamlines_rfbc))
print "mean RFBC: " + str(np.mean(self.streamlines_rfbc))
print "min RFBC: " + str(np.min(self.streamlines_rfbc))
print "max RFBC: " + str(np.max(self.streamlines_rfbc))
print("median RFBC: " + str(np.median(self.streamlines_rfbc)))
print("mean RFBC: " + str(np.mean(self.streamlines_rfbc)))
print("min RFBC: " + str(np.min(self.streamlines_rfbc)))
print("max RFBC: " + str(np.max(self.streamlines_rfbc)))

# logarithmic transform of color values to emphasize spurious fibers
minval = np.nanmin(self.streamlines_lfbc)
Expand Down

0 comments on commit 818658b

Please sign in to comment.