Skip to content

[scripts] Update SofaRegressionProgram to export in CSV format#92

Open
epernod wants to merge 8 commits intosofa-framework:masterfrom
epernod:csv_export
Open

[scripts] Update SofaRegressionProgram to export in CSV format#92
epernod wants to merge 8 commits intosofa-framework:masterfrom
epernod:csv_export

Conversation

@epernod
Copy link
Contributor

@epernod epernod commented Jan 19, 2026

based on PR #88
Update also code to replay scene using csv format
remove all code related json

Exemple of format for a MecanicalObject in Rigid template:

# dof_per_point=7
# num_points=631
# layout=time,X0,Y1,Z1,Qx1,Qy1,Qz1,Qw1,...,Xn,Yn,Zn,QxN,QyN,QzN1,QwN
0.0,9.91329,71.9,-5.27454,0.0,-0.7071067811865476,0.0,0.7071067811865476,...
0.8,9.91329,71.9,-5.27454,0.0,-0.7071067811865476,0.0,0.7071067811865476,...
...

@hugtalbot
Copy link
Contributor

The version of the RegressionProgram could be added, regarding backward compatibility. Why not keeping both (csv and json) but then we might face issues of coherency, compatibility
@bakpaul why did you want to have csv instead of json again?

@epernod
Copy link
Contributor Author

epernod commented Jan 28, 2026

I will change the code to keep both version for now

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.

2 participants