-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix alphadia params parsing #428
Conversation
proteobench/io/params/alphadia.py
Outdated
# Convert tab to level | ||
level = levels.index(len(tab)) | ||
except: | ||
return "", {}, 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, when does this happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*The exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never, that one should've been removed :-), was for debugging purposes
proteobench/io/params/alphadia.py
Outdated
try: | ||
next_line = next(line_generator) | ||
continue | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider putting this if in a different function. Add specific error to the except. IOError?
proteobench/io/params/alphadia.py
Outdated
|
||
# if new line is at same level | ||
elif level_prev == level_next: | ||
section.update(line_dict_next) | ||
if isinstance(line_dict_next, dict): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put into function
No description provided.