Skip to content

Commit

Permalink
fix parsing outside of submission
Browse files Browse the repository at this point in the history
  • Loading branch information
rodvrees committed Dec 16, 2024
1 parent f356404 commit fdf7b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proteobench/io/params/alphadia.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ def extract_params(fname: str) -> ProteoBenchParameters:
with open(fname) as f:
lines_read = f.readlines()
lines = [line for line in lines_read if "──" in line]
version = extract_file_version(lines_read[6])
except:
lines = [l for l in fname.read().decode("utf-8").splitlines() if "──" in l]

version = extract_file_version(lines[6])
version = extract_file_version(lines[6])

line_generator = iter(lines)
first_line = next(line_generator)
Expand Down

0 comments on commit fdf7b93

Please sign in to comment.