added a function openep.io.writers.export_openep_mat to store data in the OpenEP MATLAB format
currently, the following fields are exported:
userdata.notes
userdata.surface
userdata.electric (userdata.electric.impedances are currently transposed compared to in OpenEP-core)
userdata.surface
userdata.rf
userdata.surface.isVertexAtRim and userdata.rf_index cannot be exported as they are not yet read in by openep.load_openep_mat
Account for the 1-based indexing in MATLAB (and so userdata.surface.triRep.Triangulation indices are different)
Added a simple test for writing OpenEP mat files. It checks whether the scalar fields (bipolar voltage, LAT, etc.) are the same in the original data set and in a data set written using openep.io.writers.export_openep_mat. It would be better to check all attributes.
Added an option to write OpenEP mat files in the GUI: File > Export > <system filename> > as OpenEP
Fixes #133
Changes made:
openep.io.writers.export_openep_mat
to store data in the OpenEP MATLAB formatuserdata.notes
userdata.surface
userdata.electric
(userdata.electric.impedances
are currently transposed compared to in OpenEP-core)userdata.surface
userdata.rf
userdata.surface.isVertexAtRim
anduserdata.rf_index
cannot be exported as they are not yet read in byopenep.load_openep_mat
userdata.surface.triRep.Triangulation
indices are different)openep.io.writers.export_openep_mat
. It would be better to check all attributes.File > Export > <system filename> > as OpenEP