@@ -150,7 +150,7 @@ def load_curvature(self):
150150 """Load in curvature values from the ?h.curv file."""
151151 curv_path = op .join (self .data_path , "surf" , "%s.curv" % self .hemi )
152152 self .curv = nib .freesurfer .read_morph_data (curv_path )
153- self .bin_curv = np .array (self .curv > 0 , np . int )
153+ self .bin_curv = np .array (self .curv > 0 , int )
154154
155155 def load_label (self , name ):
156156 """Load in a Freesurfer .label file.
@@ -163,7 +163,7 @@ def load_label(self, name):
163163 """
164164 label = nib .freesurfer .read_label (op .join (self .data_path , 'label' ,
165165 '%s.%s.label' % (self .hemi , name )))
166- label_array = np .zeros (len (self .x ), np . int )
166+ label_array = np .zeros (len (self .x ), int )
167167 label_array [label ] = 1
168168 try :
169169 self .labels [name ] = label_array
@@ -513,10 +513,10 @@ def create_color_lut(cmap, n_colors=256, center=None):
513513 if np .ndim (cmap ) == 2 :
514514 if cmap .shape [1 ] == 4 :
515515 # This looks likes a LUT that's ready to go
516- lut = cmap .astype (np . int )
516+ lut = cmap .astype (int )
517517 elif cmap .shape [1 ] == 3 :
518518 # This looks like a LUT, but it's missing the alpha channel
519- alpha = np .ones (len (cmap ), np . int ) * 255
519+ alpha = np .ones (len (cmap ), int ) * 255
520520 lut = np .c_ [cmap , alpha ]
521521
522522 return lut
@@ -548,7 +548,7 @@ def create_color_lut(cmap, n_colors=256, center=None):
548548 raise ValueError ("Input %r was not valid for making a lut" % cmap )
549549
550550 # Convert from a matplotlib colormap to a lut array
551- lut = (cmap (np .linspace (0 , 1 , n_colors )) * 255 ).astype (np . int )
551+ lut = (cmap (np .linspace (0 , 1 , n_colors )) * 255 ).astype (int )
552552
553553 return lut
554554
0 commit comments