Skip to content

Add basic support for Eigen matrices in Data - #546

Open
damienmarchal wants to merge 6 commits into
sofa-framework:masterfrom
CRIStAL-PADR:pr-add-data_eigen-to-python
Open

damienmarchal wants to merge 6 commits into
sofa-framework:masterfrom
CRIStAL-PADR:pr-add-data_eigen-to-python

Conversation

@damienmarchal

@damienmarchal damienmarchal commented Oct 27, 2025 •

Copy link
Copy Markdown
Contributor

Do not merge before: sofa-framework/sofa#6385
The binding handles all type supported in #6385.

The type caster is a bit cumbersome as Sofa does not implement unique AbstractTypeInfo so a caching mechanisme is needed to avoid comparing by string/type_info each time.

@hugtalbot

Copy link
Copy Markdown
Contributor

Compilation to fix on Windows

@damienmarchal

Copy link
Copy Markdown
Contributor Author

The compilation on windows should be fixed by sofa'PR sofa-framework/sofa#6385

@damienmarchal damienmarchal changed the title Add basic support for Data<Eigen::MatrixXF> in data Add basic support for Data<Eigen::Matri> in data Oct 14, 2026
@damienmarchal damienmarchal changed the title Add basic support for Data<Eigen::Matri> in data Add basic support for Eigen matrices in Data Oct 14, 2026
@damienmarchal

Copy link
Copy Markdown
Contributor Author

I'm not sure I understand the compilation errors, is this related to the PR ?

@hugtalbot

Copy link
Copy Markdown
Contributor

Error comes from the stub file generation, we should fix it separately

@bakpaul

bakpaul commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

HEllo, units tests on ubuntu are failing. Could you fix this ?

@damienmarchal

Copy link
Copy Markdown
Contributor Author

hello @bakpaul

I don't see the tests failing on the CI ?
image

@bakpaul

bakpaul commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

I don't know where you saw that, but if you scroll down you'll see a table summarizing the results and the logs of the failed tests. Here :


+--------------+------+-------+------------+
| TESTS        | unit | scene | regression |
+--------------+------+-------+------------+
| ran          |  180 |    39 |          0 |
| failed       |   10 |     0 |          0 |
| errors       |    0 |     0 |          0 |
| duration (s) |    9 |    59 |          1 |
+--------------+------+-------+------------+

#----------------------------------------#
#---------------Quick Logs---------------#
#----------------------------------------#

Unit failures:

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/61_Sofa_Core_EigenData_test_read_dynamicDouble'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/62_Sofa_Core_EigenData_test_read_dynamicFloat'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/63_Sofa_Core_EigenData_test_read_fixedSize'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/64_Sofa_Core_EigenData_test_read_int'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/65_Sofa_Core_EigenData_test_viewIsLive'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/66_Sofa_Core_EigenData_test_write_fixedSizeShapeChecked'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/67_Sofa_Core_EigenData_test_write_fromArray'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/68_Sofa_Core_EigenData_test_write_fromList'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/69_Sofa_Core_EigenData_test_write_fromStringStillWorks'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

---
Bindings.Sofa.Tests:
 - Test suite: 'SofaPython3/Sofa'
 - Test name: 'all_tests/70_Sofa_Core_EigenData_test_zeroCopy'

/Users/runner/work/SofaPython3/SofaPython3/build/bin/Bindings.Sofa.Tests.d/Core/EigenData.py:0
Failed
---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants