diff --git a/src/geovista/core.py b/src/geovista/core.py index 69e2b001..480ebd09 100644 --- a/src/geovista/core.py +++ b/src/geovista/core.py @@ -19,6 +19,7 @@ import warnings import lazy_loader as lazy +import pyvista as pv from .common import ( CENTRAL_MERIDIAN, @@ -375,7 +376,9 @@ 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._namedtuple} # noqa: SLF001 + active_scalars_info = { + pv.core.dataset.ActiveArrayInfoTuple(*first.active_scalars_info) + } for i, mesh in enumerate(meshes): if not isinstance(mesh, pv.PolyData): @@ -425,7 +428,9 @@ 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._namedtuple} # noqa: SLF001 + active_scalars_info &= { + pv.core.dataset.ActiveArrayInfoTuple(*mesh.active_scalars_info) + } points = np.vstack(combined_points) faces = np.hstack(combined_faces)