Skip to content

Commit c999c64

Browse files
author
sprenger
committed
pep8 and typo fixes
1 parent 83f615a commit c999c64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

neo/io/asciisignalio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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():

neo/io/tiffio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)