-
Notifications
You must be signed in to change notification settings - Fork 1
bug(fcsfile): fix recursion when file has no spill string #145
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
Conversation
b91ee61
to
1f8ac87
Compare
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.
I confirm that it does fix the recursive call issue.
Possibly, like Zach suggested in slack, the get_file_internal_compensation
method could verify the hasFileInternalComp
attribute and throw a more meaningful error (or return None) if hasFileInternalComp
is false
. Otherwise, the user get a more cryptic ValueError: invalid literal for int() with base 10: ''
from the Compensation.from_spill_string
method.
1f8ac87
to
52c354f
Compare
☝️ implemented |
This also accounts for the edge case (which I think only happens in my tests) where |
c70c92a
to
cdd49ee
Compare
@gegnew you requested review but I don't see a new push. |
cdd49ee
to
5b8edb5
Compare
🤦 sorry, forgot to push it after fixing merge conflicts |
5b8edb5
to
d766bcd
Compare
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.
Great.
This implementation will change with #136 and the PRs that follow