Skip to content

Conversation

@epernod
Copy link
Contributor

@epernod epernod commented Jan 19, 2026

based on PR #88

Edit 2026-2-11:
Add possibility to read or write references either in csv or json format. Keep json as default one for the moment

Exemple of format for a MecanicalObject in Rigid template:

# format_version=1.0
# 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

@epernod epernod force-pushed the csv_export branch 2 times, most recently from 797bbbd to b157895 Compare February 11, 2026 14:14
@epernod epernod changed the title [scripts] Update SofaRegressionProgram to export in CSV format [scripts] Update SofaRegressionProgram to support both JSON and CSV format Feb 11, 2026
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