Skip to content

Commit

Permalink
remove unneeded imports
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre committed May 28, 2024
1 parent 9166fba commit b6f07f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 39 deletions.
5 changes: 2 additions & 3 deletions src/ansys/dpf/composites/_composite_model_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""Composite Model Interface."""
# New interface after 2023 R2
from collections.abc import Collection, Sequence
from typing import Any, Callable, Optional, cast
from typing import Optional, cast
from warnings import warn

import ansys.dpf.core as dpf
Expand All @@ -35,11 +35,10 @@
from ._composite_model_impl_helpers import (
_create_material_container_helper_op,
_deprecated_composite_definition_label,
_get_failure_enum_from_name,
_merge_containers,
)
from .composite_scope import CompositeScope
from .constants import FAILURE_LABEL, REF_SURFACE_NAME, TIME_LABEL, FailureOutput
from .constants import REF_SURFACE_NAME
from .data_sources import (
CompositeDataSources,
ContinuousFiberCompositesFiles,
Expand Down
39 changes: 3 additions & 36 deletions src/ansys/dpf/composites/_composite_model_impl_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,14 @@

"""Composite Model Interface."""
# New interface after 2023 R2
from collections.abc import Collection, Sequence
from typing import Any, Callable, Optional, cast
from collections.abc import Sequence
from typing import Any, Callable
from warnings import warn

import ansys.dpf.core as dpf
from ansys.dpf.core import FieldsContainer, MeshedRegion, Operator, UnitSystem
from ansys.dpf.core.server_types import BaseServer
import numpy as np
from numpy.typing import NDArray
from ansys.dpf.core import FieldsContainer, Operator

from .composite_scope import CompositeScope
from .constants import FAILURE_LABEL, REF_SURFACE_NAME, TIME_LABEL, FailureOutput
from .data_sources import (
CompositeDataSources,
ContinuousFiberCompositesFiles,
get_composites_data_sources,
)
from .failure_criteria import CombinedFailureCriterion
from .layup_info import (
ElementInfo,
LayerProperty,
LayupModelContextType,
LayupPropertiesProvider,
add_layup_info_to_mesh,
get_element_info_provider,
)
from .layup_info._layup_info import _get_layup_model_context
from .layup_info._reference_surface import (
_get_map_to_reference_surface_operator,
_get_reference_surface_and_mapping_field,
)
from .layup_info.material_operators import MaterialOperators, get_material_operators
from .layup_info.material_properties import MaterialProperty, get_constant_property_dict
from .result_definition import FailureMeasureEnum
from .sampling_point import SamplingPointNew
from .server_helpers import (
upload_continuous_fiber_composite_files_to_server,
version_equal_or_later,
version_older_than,
)
from .unit_system import get_unit_system


def _create_material_container_helper_op(material_provider: Operator) -> Operator:
Expand Down

0 comments on commit b6f07f7

Please sign in to comment.