Parse igb simulation file
Full example code: examples/parser/opencarp_igb.py
The .igb file is the core file of your simulation, containing all signal data of each point. See OpenCARP point signal example on how to parse signals and convert them to local activation times.
from dgmr.parser import OpencarpReader
igb_file = "path_to_your_igb_file"
data = OpencarpReader.load_igb_file(igb_file)
print(data[:5])
Output:
[[-85.9939 -85.99393 -85.99396 ... -86.04386 -86.04389 -86.043915 ]
[ -2.491118 -2.9155734 -3.3498778 ... 3.5750182 3.3314826 3.080597 ]
[-85.9939 -85.99393 -85.99396 ... -86.04386 -86.04389 -86.043915 ]
[-85.9939 -85.99393 -85.99396 ... -86.04386 -86.04389 -86.043915 ]
[ 9.647776 9.673877 9.690911 ... -85.62792 -85.62944 -85.63095 ]]