Skip to content
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

Merged
merged 7 commits into from
Nov 5, 2024
Merged

Conversation

rodvrees
Copy link
Contributor

@rodvrees rodvrees commented Nov 4, 2024

No description provided.

# Convert tab to level
level = levels.index(len(tab))
except:
return "", {}, 0
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*The exception

Copy link
Contributor Author

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

try:
next_line = next(line_generator)
continue
except:
Copy link
Contributor

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?


# if new line is at same level
elif level_prev == level_next:
section.update(line_dict_next)
if isinstance(line_dict_next, dict):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put into function

@RobbinBouwmeester RobbinBouwmeester merged commit 48ffb71 into main Nov 5, 2024
8 checks passed
@RobbinBouwmeester RobbinBouwmeester deleted the fix-alphadia-params-io branch November 5, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants