@@ -77,7 +77,7 @@ def get_rois_crossed(pointsmm, roiData, voxelSize):
7777 x = int (pointsmm [j , 0 ] / float (voxelSize [0 ]))
7878 y = int (pointsmm [j , 1 ] / float (voxelSize [1 ]))
7979 z = int (pointsmm [j , 2 ] / float (voxelSize [2 ]))
80- if not roiData [x , y , z ] = = 0 :
80+ if roiData [x , y , z ] ! = 0 :
8181 rois_crossed .append (roiData [x , y , z ])
8282 rois_crossed = list (
8383 dict .fromkeys (rois_crossed ).keys ()
@@ -91,7 +91,7 @@ def get_connectivity_matrix(n_rois, list_of_roi_crossed_lists):
9191 for idx_i , roi_i in enumerate (rois_crossed ):
9292 for idx_j , roi_j in enumerate (rois_crossed ):
9393 if idx_i > idx_j :
94- if not roi_i = = roi_j :
94+ if roi_i ! = roi_j :
9595 connectivity_matrix [roi_i - 1 , roi_j - 1 ] += 1
9696 connectivity_matrix = connectivity_matrix + connectivity_matrix .T
9797 return connectivity_matrix
@@ -371,7 +371,7 @@ def cmat(
371371 di ["fiber_length_mean" ] = 0
372372 di ["fiber_length_median" ] = 0
373373 di ["fiber_length_std" ] = 0
374- if not u = = v : # Fix for self loop problem
374+ if u ! = v : # Fix for self loop problem
375375 G .add_edge (u , v , ** di )
376376 if "fiblist" in d :
377377 numfib .add_edge (u , v , weight = di ["number_of_fibers" ])
@@ -400,7 +400,7 @@ def cmat(
400400 pickle .dump (I , f , pickle .HIGHEST_PROTOCOL )
401401
402402 path , name , ext = split_filename (matrix_mat_name )
403- if not ext = = ".mat" :
403+ if ext ! = ".mat" :
404404 ext = ".mat"
405405 matrix_mat_name = matrix_mat_name + ext
406406
@@ -608,7 +608,7 @@ def _run_interface(self, runtime):
608608
609609 matrix_mat_file = op .abspath (self .inputs .out_matrix_mat_file )
610610 path , name , ext = split_filename (matrix_mat_file )
611- if not ext = = ".mat" :
611+ if ext ! = ".mat" :
612612 ext = ".mat"
613613 matrix_mat_file = matrix_mat_file + ext
614614
@@ -673,7 +673,7 @@ def _list_outputs(self):
673673
674674 matrix_mat_file = op .abspath (self .inputs .out_matrix_mat_file )
675675 path , name , ext = split_filename (matrix_mat_file )
676- if not ext = = ".mat" :
676+ if ext ! = ".mat" :
677677 ext = ".mat"
678678 matrix_mat_file = matrix_mat_file + ext
679679
0 commit comments