diff --git a/src/ansys/dpf/composites/_composite_model_impl.py b/src/ansys/dpf/composites/_composite_model_impl.py index c62ac2329..cc6ed28ea 100644 --- a/src/ansys/dpf/composites/_composite_model_impl.py +++ b/src/ansys/dpf/composites/_composite_model_impl.py @@ -270,7 +270,7 @@ def get_mesh(self, composite_definition_label: Optional[str] = None) -> MeshedRe """ return self._core_model.metadata.meshed_region - def get_element_ids(self) -> Sequence[np.int64]: + def get_element_ids(self) -> Sequence[int]: """Get all element labels in the model.""" return cast(list[int], self.core_model.metadata.meshed_region.elements.scoping.ids) diff --git a/src/ansys/dpf/composites/_composite_model_impl_2023r2.py b/src/ansys/dpf/composites/_composite_model_impl_2023r2.py index 1668f177f..6689c8cb7 100644 --- a/src/ansys/dpf/composites/_composite_model_impl_2023r2.py +++ b/src/ansys/dpf/composites/_composite_model_impl_2023r2.py @@ -206,7 +206,7 @@ def get_mesh(self, composite_definition_label: Optional[str] = None) -> MeshedRe composite_definition_label = self._first_composite_definition_label_if_only_one() return self._composite_infos[composite_definition_label].mesh - def get_element_ids(self) -> Sequence[np.int64]: + def get_element_ids(self) -> Sequence[int]: """Get all element labels in the model.""" return cast(list[int], self.core_model.metadata.meshed_region.elements.scoping.ids) diff --git a/src/ansys/dpf/composites/composite_model.py b/src/ansys/dpf/composites/composite_model.py index c1ac59561..c0b2d9e10 100644 --- a/src/ansys/dpf/composites/composite_model.py +++ b/src/ansys/dpf/composites/composite_model.py @@ -170,7 +170,7 @@ def get_rst_streams_provider(self) -> Operator: """Get the stream provider for the RST file.""" return self._implementation.get_rst_streams_provider() - def get_element_ids(self) -> Sequence[int] + def get_element_ids(self) -> Sequence[int]: """ Get all element IDs (labels) in the model.