I want to take the exported simulation parameters of the bacteria and store them as a json. Currently they are exported in the format:
#********************************************************************************************
#coding:
#index, totalForce_equivalent, living, moving, width, length,
#[pos[0], pos[1], pos[2]], [velocity[0], velocity[1], velocity[2]],
#[angle[0], angle[1]], [velocity_angular[0], velocity_angular[1]];
#********************************************************************************************
frame 0
1; 0.0; True; False; 6.0; 483.9587737429336; [72.42471235743828, 72.21358890260774, 13.016747659390617]; [0.0, 0.0, 8.20055102541609]; [3.0031802567586254, -0.7060105708398637]; [-0.0007403985920757826, 0.032618881148861176];
frame 1
1; 0.0; True; False; 6.0; 487.92840095914994; [72.42471235743828, 72.21358890260774, 26.60554760144548]; [0.0, 0.0, 8.560943963494564]; [3.002444613086532, -0.6311192925981083]; [-0.0004634555134190287, 0.04718150529230595];
Switching to jsons is maybe better for importing the values and could provide a better overview.