File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ def read_segment(self, lazy=False):
208208 sig = sig [:, mask ]
209209 elif self .method == 'homemade' :
210210 with open (self .filename , 'r' , newline = None ) as fid :
211- for l in range (self .skiprows ):
211+ for _ in range (self .skiprows ):
212212 fid .readline ()
213213 tab = []
214214 for line in fid .readlines ():
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ def natural_sort(l):
108108 if len (list_data_image .shape ) == 4 :
109109 list_data_image = []
110110 for file_name in file_name_list :
111- data = np .array (Image .open (self .filename + "/" + file_name ).convert ('L' )).astype = np .float32
111+ image = Image .open (self .filename + "/" + file_name ).convert ('L' )
112+ data = np .array (image ).astype (np .float32 )
112113 list_data_image .append (data )
113114
114115 print ("read block" )
You can’t perform that action at this time.
0 commit comments