mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-11-29 20:46:54 +01:00
lint II
This commit is contained in:
parent
4f099fb4a9
commit
2441bb45a3
1 changed files with 2 additions and 2 deletions
|
|
@ -613,7 +613,7 @@ def _check_append_rep(content, start_list):
|
|||
if chunk_num == len(start_list) - 1:
|
||||
stop = len(content)
|
||||
else:
|
||||
stop = start_list[chunk_num+1]
|
||||
stop = start_list[chunk_num + 1]
|
||||
chunk = content[start:stop]
|
||||
for linenumber, line in enumerate(chunk):
|
||||
if line.startswith("[correlator]"):
|
||||
|
|
@ -625,7 +625,7 @@ def _check_append_rep(content, start_list):
|
|||
if len(set(header_len_list)) > 1:
|
||||
warnings.warn("Not all headers have the same length. Data parts do.")
|
||||
has_regular_len_heads = False
|
||||
|
||||
|
||||
if len(set(data_len_list)) > 1:
|
||||
raise Exception("Irregularities in file structure found, not all run data are of the same output length")
|
||||
return has_regular_len_heads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue