-
Notifications
You must be signed in to change notification settings - Fork 22
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
Simplify gap_to_julia code #276
Conversation
Codecov Report
@@ Coverage Diff @@
## master #276 +/- ##
==========================================
- Coverage 70.21% 68.99% -1.22%
==========================================
Files 51 54 +3
Lines 3280 3564 +284
==========================================
+ Hits 2303 2459 +156
- Misses 977 1105 +128
|
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.
This looks good, apart from the key
vs. i
issue marked in the code.
translated_obj = gap_to_julia(T,current_obj,recursion_dict) | ||
dict[ i ] = translated_obj | ||
recursion_dict[ current_obj ] = translated_obj | ||
current_obj = getproperty(obj, key) |
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.
Shouldn't key
be i
?
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.
Yes (or rather, the i
above should have been key
). Fixed now.
- use get! with a do-block to simplify some cases - remove redundant conversions function that allowed for dealing with holes -- they actually did nothing special compared to the base versions (which the still-passing tests seem to confirm)
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.
Looks good, thanks.
with holes -- they actually did nothing special compared to
the base versions (which the still-passing tests seem to confirm)