Skip to content

Commit

Permalink
Update core.py
Browse files Browse the repository at this point in the history
  • Loading branch information
user27182 authored Nov 21, 2024
1 parent 825daf3 commit 253f4b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/geovista/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from .crs import projected
from .filters import remesh
from .search import find_cell_neighbours
import pyvista as pv

if TYPE_CHECKING:
from collections.abc import Iterable
Expand Down Expand Up @@ -375,7 +376,7 @@ def combine(
common_point_data = set(first.point_data.keys())
common_cell_data = set(first.cell_data.keys())
common_field_data = set(first.field_data.keys())
active_scalars_info = {first.active_scalars_info}
active_scalars_info = {pv.core.dataset.ActiveArrayInfoTuple(first.active_scalars_info)}

for i, mesh in enumerate(meshes):
if not isinstance(mesh, pv.PolyData):
Expand Down Expand Up @@ -425,7 +426,7 @@ def combine(
common_cell_data &= set(mesh.cell_data.keys())
common_field_data &= set(mesh.field_data.keys())
if mesh.active_scalars_name:
active_scalars_info &= {mesh.active_scalars_info}
active_scalars_info &= {pv.core.dataset.ActiveArrayInfoTuple(mesh.active_scalars_info)}

points = np.vstack(combined_points)
faces = np.hstack(combined_faces)
Expand Down

0 comments on commit 253f4b4

Please sign in to comment.