Skip to content

Commit

Permalink
removed mesh_normals var
Browse files Browse the repository at this point in the history
  • Loading branch information
vinush-vignes committed Jan 18, 2024
1 parent 60c4b74 commit 0c534da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions openep/data_structures/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class Fields:
pacing_site: np.ndarray = None
conduction_velocity: np.ndarray = None
cv_divergence: np.ndarray = None
mesh_normals : np.ndarray = None

def __repr__(self):
return f"fields: {tuple(self.__dict__.keys())}"
Expand Down Expand Up @@ -204,11 +203,6 @@ def extract_surface_data(surface_data):
except KeyError as e:
cv_divergence = None

try:
mesh_normals = surface_data['mesh_normals'].astype(float)
except KeyError as e:
mesh_normals = None

fields = Fields(
bipolar_voltage=bipolar_voltage,
unipolar_voltage=unipolar_voltage,
Expand All @@ -222,7 +216,6 @@ def extract_surface_data(surface_data):
pacing_site=pacing_site,
conduction_velocity=conduction_velocity,
cv_divergence=cv_divergence,
mesh_normals=mesh_normals
)

return points, indices, fields
Expand Down
2 changes: 0 additions & 2 deletions openep/io/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def export_openCARP(
def export_openep_mat(
case: Case,
filename: str,
separate_regions: bool = False,
):
"""Export data in OpenEP format.
Expand Down Expand Up @@ -366,7 +365,6 @@ def _extract_surface_data(
surface_data['longitudinal'] = fields.longitudinal_fibres if fields.longitudinal_fibres is not None else empty_float_array
surface_data['transverse'] = fields.transverse_fibres if fields.transverse_fibres is not None else empty_float_array
surface_data['pacing_site'] = fields.pacing_site if fields.pacing_site is not None else empty_int_array
surface_data['mesh_normals'] = fields.mesh_normals if fields.mesh_normals is not None else empty_int_array

# Remove arrays that are full of NaNs
for field_name, field in surface_data.items():
Expand Down

0 comments on commit 0c534da

Please # to comment.