pybind11 add function args sequentially #5134
Unanswered
Nodmgatall
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
currently I am working on a Python interface for a data processing tool.
Within we define modules which contains operators which again can have different option when used on the CLI.
I managed to rewrite the code, so that the operator arguments are stored in arrays and I am now able to create functions with named operators from the stored arguments.
The problem is that this requires huge changes to the code base solely for the python bindings. And also limits the method of storage to arrays since vectors cannot be unpacked into module::def.
Which in turn causes a lot of follow up trouble because of the template arguments.
Is there another way to generate these function arguments sequentially e.g. while iterating over a vector?
Kind regards
Nodm Gatall
Beta Was this translation helpful? Give feedback.
All reactions