Skip to content

Commit 4f099fb

Browse files
committed
lint
1 parent 4f63bc4 commit 4f099fb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyerrors/input/sfcf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def _check_append_rep(content, start_list):
610610
has_regular_len_heads = True
611611
for chunk_num in range(len(start_list)):
612612
start = start_list[chunk_num]
613-
if chunk_num == len(start_list)-1:
613+
if chunk_num == len(start_list) - 1:
614614
stop = len(content)
615615
else:
616616
stop = start_list[chunk_num+1]
@@ -621,7 +621,7 @@ def _check_append_rep(content, start_list):
621621
break
622622
header_len_list.append(header_len)
623623
data_len_list.append(len(chunk) - header_len)
624-
624+
625625
if len(set(header_len_list)) > 1:
626626
warnings.warn("Not all headers have the same length. Data parts do.")
627627
has_regular_len_heads = False
@@ -653,7 +653,6 @@ def _read_chunk_structure(chunk, pattern, b2b):
653653
return gauge_line, corr_line, start_read, T
654654

655655

656-
657656
def _read_append_rep(filename, pattern, b2b, im, single, idl_func, cfg_func_args):
658657
with open(filename, 'r') as fp:
659658
content = fp.readlines()
@@ -674,10 +673,10 @@ def _read_append_rep(filename, pattern, b2b, im, single, idl_func, cfg_func_args
674673

675674
for chunk_num in range(len(chunk_start_lines)):
676675
start = chunk_start_lines[chunk_num]
677-
if chunk_num == len(chunk_start_lines)-1:
676+
if chunk_num == len(chunk_start_lines) - 1:
678677
stop = len(content)
679678
else:
680-
stop = chunk_start_lines[chunk_num+1]
679+
stop = chunk_start_lines[chunk_num + 1]
681680
chunk = content[start:stop]
682681
if not has_regular_len_heads:
683682
gauge_line, corr_line, start_read, T = _read_chunk_structure(chunk, pattern, b2b)

0 commit comments

Comments
 (0)