Component data differs between Python and GUI #4378
Replies: 6 comments 8 replies
-
hey @adkoessler when are you accessing the data |
Beta Was this translation helpful? Give feedback.
-
Hi @hugtalbot The component is a custom one from a library built by some colleagues. |
Beta Was this translation helpful? Give feedback.
-
Hi @hugtalbot Right now I have found a way to circumvent the problem: data is switched to |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello all (and hello @hugtalbot who asked me to tag him :)
I am encountering a problem when trying to read some data values of custom components. It looks to be the same problem as in this topic, but the original poster gave no answer if he found a fix or not.
Version of SOFA: v22.06.99
Version of SofaPython3: v20.12.00
In the script, I have a controller who just prints some values data: "objectiveValue" with type
vector<d>
and "invJacobian" with typevector<vector<d>>
I compared values outputted by python with values from the GUI. For "objectiveValue" there is no problem, but for "invJacobian" I have:
The shape of the array is fine, some of the terms are passed to python (for instance highlighted number in shell corresponds to last value in GUI). But the result is not ok. The obvious good result is the one of the GUI btw.
Any input on this problem is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions