From 77f2c80bcabd4c569e58adba44fa9bbb8fb955c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Roos?= Date: Fri, 13 Sep 2024 15:12:37 +0200 Subject: [PATCH] cosmetic changes --- src/ansys/dpf/composites/_composite_model_impl.py | 6 +----- .../dpf/composites/_composite_model_impl_2023r2.py | 6 +----- src/ansys/dpf/composites/composite_model.py | 11 +---------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/ansys/dpf/composites/_composite_model_impl.py b/src/ansys/dpf/composites/_composite_model_impl.py index cc6ed28ea..e9beb963b 100644 --- a/src/ansys/dpf/composites/_composite_model_impl.py +++ b/src/ansys/dpf/composites/_composite_model_impl.py @@ -270,10 +270,6 @@ def get_mesh(self, composite_definition_label: Optional[str] = None) -> MeshedRe """ return self._core_model.metadata.meshed_region - 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) - @_deprecated_composite_definition_label def get_layup_operator(self, composite_definition_label: Optional[str] = None) -> Operator: """Get the lay-up operator. @@ -771,7 +767,7 @@ def get_all_layered_element_ids_for_composite_definition_label( return self.get_all_layered_element_ids() def get_rst_streams_provider(self) -> Operator: - """Get the stream provider of the result file.""" + """Get the streams provider of the loaded result file.""" return self._core_model.metadata.streams_provider def _first_composite_definition_label_if_only_one(self) -> str: diff --git a/src/ansys/dpf/composites/_composite_model_impl_2023r2.py b/src/ansys/dpf/composites/_composite_model_impl_2023r2.py index 05369346d..73b89beea 100644 --- a/src/ansys/dpf/composites/_composite_model_impl_2023r2.py +++ b/src/ansys/dpf/composites/_composite_model_impl_2023r2.py @@ -206,10 +206,6 @@ 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[int]: - """Get all element labels in the model.""" - return cast(list[int], self.core_model.metadata.meshed_region.elements.scoping.ids) - @property def data_sources(self) -> CompositeDataSources: """Composite data sources.""" @@ -650,5 +646,5 @@ def _first_composite_definition_label_if_only_one(self) -> str: ) def get_rst_streams_provider(self) -> Operator: - """Get the stream provider of the result file.""" + """Get the streams provider of the loaded result file.""" return self._core_model.metadata.streams_provider diff --git a/src/ansys/dpf/composites/composite_model.py b/src/ansys/dpf/composites/composite_model.py index c0b2d9e10..e02151944 100644 --- a/src/ansys/dpf/composites/composite_model.py +++ b/src/ansys/dpf/composites/composite_model.py @@ -167,18 +167,9 @@ def get_mesh(self, composite_definition_label: Optional[str] = None) -> MeshedRe return self._implementation.get_mesh(composite_definition_label) def get_rst_streams_provider(self) -> Operator: - """Get the stream provider for the RST file.""" + """Get the streams provider of the loaded result file.""" return self._implementation.get_rst_streams_provider() - def get_element_ids(self) -> Sequence[int]: - """ - Get all element IDs (labels) in the model. - - The list can also contain non-layered and non-structural elements - such as contact or surface elements. - """ - return self._implementation.get_element_ids() - def get_layup_operator(self, composite_definition_label: Optional[str] = None) -> Operator: """Get the lay-up operator.