@@ -49,8 +49,8 @@ def __init__(self, filename):
4949 raise OSError ('File ' + filename .name + ' not found.' )
5050
5151 # load data in advance
52- # this ensures once the widget is created that the file is of a format
53- # readable by nibabel
52+ # this ensures once the widget is created that the file is of a
53+ # format readable by nibabel
5454 self .data = nib .load (str (filename ))
5555
5656 # initialise where the image handles will go
@@ -124,13 +124,13 @@ def _default_plotter(self, mask_background=False, **kwargs):
124124 (np .round (data_array ) == 0 ))
125125 else : # 4D
126126 labels , n_labels = scipy .ndimage .measurements .label (
127- (np .round (data_array ).max (axis = 3 ) == 0 )
128- )
127+ (np .round (data_array ).max (axis = 3 ) == 0 )
128+ )
129129
130130 mask_labels = [lab for lab in range (1 , n_labels + 1 )
131131 if (np .any (labels [[0 , - 1 ], :, :] == lab ) |
132- np .any (labels [:, [0 , - 1 ], :] == lab ) |
133- np .any (labels [:, :, [0 , - 1 ]] == lab ))]
132+ np .any (labels [:, [0 , - 1 ], :] == lab ) |
133+ np .any (labels [:, :, [0 , - 1 ]] == lab ))]
134134
135135 if data_array .ndim == 3 :
136136 data_array = np .ma .masked_where (
0 commit comments