Python+Idefix now available for testing #273
Replies: 2 comments 3 replies
-
For what it's worth idefix-cli is now aware of this feature (since version 5.2.0) and treats Python modules as source files by default in |
Beta Was this translation helpful? Give feedback.
-
Hello, I just want to keep track of a small feature I added wrt the initial version of the Python binding module (which might be worth to include in future versions). For a slightly more advanced initialisation of the flow, I sometime need to know which sub-domain is handled by the current process (in multi-processing), which I usually know thanks to the gbeg, np_int/tot array of a DataBlockHost instance. Those array were not accessible from its python counterpart data, so I added the following lines in the src/pydefix.cpp file:
While doing so, I noticed that those array can similarly be modified from the Python interface (like the IdefixArray Vc or Vs for example). I guess that you are already aware of this, but user should be careful about not messing with that while initialising the flow. |
Beta Was this translation helpful? Give feedback.
-
Following popular request during the Idefix days, the python binding of Idefix
pydefix
is now available on the public repository, in thepythonBinding
branch. There is no proper documentation, but an example and a README file are provided intest/IO/pydefix
directory.We will wait for your feedback before merging this into the develop branch. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions