-
-
Notifications
You must be signed in to change notification settings - Fork 23
More general python codegen #1053
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
I don't understand how this works? How does the sidecar know to pick up the user specified file? |
@BenGalewsky The sidecar tells the codegen shim what file name to produce. This PR introduces a route where user code can just directly produce this file, instead of returning an awkward array which the codegen shim then writes to that file. |
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 if statements here are getting quite complex. I don't think we have any tests for this. Is this getting to the point we need those?
code_generator_python/python_code_generator/templates/transform_single_file.py
Outdated
Show resolved
Hide resolved
code_generator_python/python_code_generator/templates/transform_single_file.py
Outdated
Show resolved
Hide resolved
53bd138
to
87dfa6f
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'm happy with this now....
Allow the function signature
in addition to
so Python transformers can create arbitrary ROOT file output.