-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add rules to auto convert Awkward types #57
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #57 +/- ##
==========================================
- Coverage 72.03% 71.66% -0.38%
==========================================
Files 4 4
Lines 1613 1648 +35
==========================================
+ Hits 1162 1181 +19
- Misses 451 467 +16 ☔ View full report in Codecov by Sentry. |
PyIterable
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 custom conversion rules define a function to do the conversion. The pyconvert_add_rule
function is called to register it.
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.
from Julia docs: if you define a function __init__()
in a module, then Julia will call __init__()
immediately after the module is loaded (e.g., by import, using, or require) at runtime for the first time (i.e., __init__
is only called once, and only after all statements in the module have been executed). Because it is called after the module is fully imported, any submodules or other imported modules have their __init__
functions called before the __init__
of the enclosing module.
Here is an example of using from in Python: