diff --git a/doc/changelog.d/1099.miscellaneous.md b/doc/changelog.d/1099.miscellaneous.md new file mode 100644 index 0000000000..3a3bfe420c --- /dev/null +++ b/doc/changelog.d/1099.miscellaneous.md @@ -0,0 +1 @@ +Fix: intenum to enum \ No newline at end of file diff --git a/src/ansys/meshing/prime/autogen/automeshstructs.py b/src/ansys/meshing/prime/autogen/automeshstructs.py index 3dce359c96..00e4138348 100644 --- a/src/ansys/meshing/prime/autogen/automeshstructs.py +++ b/src/ansys/meshing/prime/autogen/automeshstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class VolumeFillType(enum.IntEnum): +class VolumeFillType(enum.Enum): """Types of volume fill options. """ TET = 0 @@ -42,7 +42,7 @@ class VolumeFillType(enum.IntEnum): HEXCOREPOLY = 3 """Volume fill using hexahedral cells in the core and polyhedral cells near the boundary.""" -class HexCoreCellElementType(enum.IntEnum): +class HexCoreCellElementType(enum.Enum): """Cell element type of hex-shaped cells. """ ALLPOLY = 0 @@ -52,7 +52,7 @@ class HexCoreCellElementType(enum.IntEnum): HEXANDPOLY = 2 """Generates a mix of poly type and hex type cells.""" -class HexCoreTransitionLayerType(enum.IntEnum): +class HexCoreTransitionLayerType(enum.Enum): """Handle size transition of hex cells. """ HANGINGNODES = 0 diff --git a/src/ansys/meshing/prime/autogen/autoquadmesherstructs.py b/src/ansys/meshing/prime/autogen/autoquadmesherstructs.py index 3d082f854e..5b2be5d0cc 100644 --- a/src/ansys/meshing/prime/autogen/autoquadmesherstructs.py +++ b/src/ansys/meshing/prime/autogen/autoquadmesherstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class EdgeConnectType(enum.IntEnum): +class EdgeConnectType(enum.Enum): """Edge connect type to define the type of connection between edges . """ NONE = 0 diff --git a/src/ansys/meshing/prime/autogen/commontypes.py b/src/ansys/meshing/prime/autogen/commontypes.py index 094114c527..808afa19b3 100644 --- a/src/ansys/meshing/prime/autogen/commontypes.py +++ b/src/ansys/meshing/prime/autogen/commontypes.py @@ -29,7 +29,7 @@ import numpy as np -class SizeFieldType(enum.IntEnum): +class SizeFieldType(enum.Enum): """The type of sizing field to be used to fetch element size at given location. """ GEOMETRIC = 0 @@ -43,7 +43,7 @@ class SizeFieldType(enum.IntEnum): MESHEDGEODESIC = 7 """Computes size field using existing surface mesh sizes and diffuses geodesically. Then uses the computed size field to remesh surfaces. Notes: The type is applicable when remeshing already meshed surfaces.""" -class SolverType(enum.IntEnum): +class SolverType(enum.Enum): """Type of solver. """ FLUENT = 1 @@ -51,7 +51,7 @@ class SolverType(enum.IntEnum): MAPDL = 2 """Solver type is MAPDL. Creates a group of face quality measures mostly used in MAPDL.""" -class FaceQualityMeasure(enum.IntEnum): +class FaceQualityMeasure(enum.Enum): """The type of face quality measures to check face quality metrics. """ SKEWNESS = 0 @@ -67,7 +67,7 @@ class FaceQualityMeasure(enum.IntEnum): ELEMENTQUALITY = 50 """The Element Quality metric ranges between 0 (worst) and 1 (best). A value of 1 indicates a perfect cube or square (best) while a value of 0 indicates that the element has a zero or negative volume (worst).""" -class CellQualityMeasure(enum.IntEnum): +class CellQualityMeasure(enum.Enum): """The type of cell quality measures to check cell quality metrics. """ SKEWNESS = 0 @@ -83,7 +83,7 @@ class CellQualityMeasure(enum.IntEnum): ELEMENTQUALITY = 50 """The Element Quality metric ranges between 0 (worst) and 1 (best). A value of 1 indicates a perfect cube or square (best) while a value of 0 indicates that the element has a zero or negative volume (worst).""" -class SurfaceFeatureType(enum.IntEnum): +class SurfaceFeatureType(enum.Enum): """Type of face edges considered as features. """ NONE = 0 @@ -99,7 +99,7 @@ class SurfaceFeatureType(enum.IntEnum): FEATUREORZONELETBOUNDARY = 5 """Face edges at zonelet boundary or with normal angle more than threshold are considered as feature.""" -class ShellBLOffsetType(enum.IntEnum): +class ShellBLOffsetType(enum.Enum): """Type of offset method during ShellBL generation. """ ASPECTRATIO = 0 diff --git a/src/ansys/meshing/prime/autogen/connectstructs.py b/src/ansys/meshing/prime/autogen/connectstructs.py index ebdfc5c24d..e94da0f92a 100644 --- a/src/ansys/meshing/prime/autogen/connectstructs.py +++ b/src/ansys/meshing/prime/autogen/connectstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class JoinSeparateMethod(enum.IntEnum): +class JoinSeparateMethod(enum.Enum): """Join separation method to handle separated overlapped zonelets. """ KEEPNONE = 0 @@ -40,7 +40,7 @@ class JoinSeparateMethod(enum.IntEnum): KEEPBOTH = 2 """Keep both overlapping zonelets after joining.""" -class StitchType(enum.IntEnum): +class StitchType(enum.Enum): """Stitch type depending on nature of surface boundary edges to be stitched. """ ALLALL = 0 @@ -48,7 +48,7 @@ class StitchType(enum.IntEnum): FREEFREE = 1 """Stitch surfaces at free boundary edges.""" -class MergeNodeType(enum.IntEnum): +class MergeNodeType(enum.Enum): """Type of nodes to be merged. """ ALLALL = 0 @@ -56,7 +56,7 @@ class MergeNodeType(enum.IntEnum): FREEFREE = 1 """Merge only free nodes with free nodes.""" -class FuseOption(enum.IntEnum): +class FuseOption(enum.Enum): """Type to specify treatment of surfaces for fusing. """ NONE = 0 diff --git a/src/ansys/meshing/prime/autogen/controlstructs.py b/src/ansys/meshing/prime/autogen/controlstructs.py index ca7a14d185..9b411bd92f 100644 --- a/src/ansys/meshing/prime/autogen/controlstructs.py +++ b/src/ansys/meshing/prime/autogen/controlstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class ScopeEntity(enum.IntEnum): +class ScopeEntity(enum.Enum): """ScopeDefinition uses entity type to scope entities. """ FACEZONELETS = 1 @@ -42,7 +42,7 @@ class ScopeEntity(enum.IntEnum): VOLUME = 6 """Evaluate scope to get volumes.""" -class ScopeEvaluationType(enum.IntEnum): +class ScopeEvaluationType(enum.Enum): """ScopeDefinition uses evaluation type to evaluate the scope. """ LABELS = 3 @@ -50,13 +50,13 @@ class ScopeEvaluationType(enum.IntEnum): ZONES = 4 """Use zones to evaluate the scope.""" -class ScopeExpressionType(enum.IntEnum): +class ScopeExpressionType(enum.Enum): """ScopeExpressionType uses expression type to evaluate the scope. """ NAMEPATTERN = 2 """Use name pattern expression to evaluate scope.""" -class SweepType(enum.IntEnum): +class SweepType(enum.Enum): """Provides the Sweep Mesh Decomposition type. """ STANDARD = 1 diff --git a/src/ansys/meshing/prime/autogen/fileiostructs.py b/src/ansys/meshing/prime/autogen/fileiostructs.py index 7d7f2b9d90..9e64a61263 100644 --- a/src/ansys/meshing/prime/autogen/fileiostructs.py +++ b/src/ansys/meshing/prime/autogen/fileiostructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class CadReaderRoute(enum.IntEnum): +class CadReaderRoute(enum.Enum): """CAD Reader routes. """ PROGRAMCONTROLLED = 0 @@ -44,7 +44,7 @@ class CadReaderRoute(enum.IntEnum): DISCOVERY = 4 """Denotes Discovery as CAD reader route.""" -class PartCreationType(enum.IntEnum): +class PartCreationType(enum.Enum): """Part Creation Type decides whether to create a part per CAD Model, Assembly, Part, Body. """ MODEL = 0 @@ -56,7 +56,7 @@ class PartCreationType(enum.IntEnum): BODY = 3 """Denotes a part per CAD Body.""" -class LengthUnit(enum.IntEnum): +class LengthUnit(enum.Enum): """Length units """ M = 0 @@ -74,7 +74,7 @@ class LengthUnit(enum.IntEnum): FT = 6 """Denotes length unit is feet.""" -class CadFaceter(enum.IntEnum): +class CadFaceter(enum.Enum): """Types of CAD faceter. """ ACIS = 0 @@ -82,7 +82,7 @@ class CadFaceter(enum.IntEnum): PARASOLID = 1 """Denotes CAD faceter is Parasolid.""" -class CadRefacetingResolution(enum.IntEnum): +class CadRefacetingResolution(enum.Enum): """Levels of CAD faceting refinement. """ COARSE = 0 @@ -94,7 +94,7 @@ class CadRefacetingResolution(enum.IntEnum): CUSTOM = 3 """Denotes custom resolution of CAD faceting.""" -class CadRefacetingMaxEdgeSizeLimit(enum.IntEnum): +class CadRefacetingMaxEdgeSizeLimit(enum.Enum): """Types of maximum edge size limit for CAD faceting. """ NONE = 0 @@ -104,7 +104,7 @@ class CadRefacetingMaxEdgeSizeLimit(enum.IntEnum): RELATIVE = 2 """Denotes relative maximum edge size limit for CAD faceting.""" -class CdbAnalysisType(enum.IntEnum): +class CdbAnalysisType(enum.Enum): """Provides the MAPDL CDB analysis type. """ NONE = 0 @@ -124,7 +124,7 @@ class CdbAnalysisType(enum.IntEnum): **This is a beta parameter**. **The behavior and name may change in the future**.""" -class CdbSimulationType(enum.IntEnum): +class CdbSimulationType(enum.Enum): """Simulation Type for CDB export. """ IMPLICIT = 0 @@ -132,7 +132,7 @@ class CdbSimulationType(enum.IntEnum): EXPLICIT = 1 """Explicit Simulation.""" -class SeparateBlocksFormatType(enum.IntEnum): +class SeparateBlocksFormatType(enum.Enum): """Format type for separate element blocks. Only applicable when write_separate_blocks is true. """ STANDARD = 0 @@ -144,7 +144,7 @@ class SeparateBlocksFormatType(enum.IntEnum): **This is a beta parameter**. **The behavior and name may change in the future**.""" -class LSDynaFileFormatType(enum.IntEnum): +class LSDynaFileFormatType(enum.Enum): """Provides the format type to write the LS-DYNA file. """ REGULAR = 0 @@ -156,7 +156,7 @@ class LSDynaFileFormatType(enum.IntEnum): **This is a beta parameter**. **The behavior and name may change in the future**.""" -class LSDynaAnalysisType(enum.IntEnum): +class LSDynaAnalysisType(enum.Enum): """Provides the LS-DYNA analysis type. """ DOORSLAM = 0 diff --git a/src/ansys/meshing/prime/autogen/igastructs.py b/src/ansys/meshing/prime/autogen/igastructs.py index 89b79d4304..360fe9955d 100644 --- a/src/ansys/meshing/prime/autogen/igastructs.py +++ b/src/ansys/meshing/prime/autogen/igastructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class ControlPointSelection(enum.IntEnum): +class ControlPointSelection(enum.Enum): """Control point selection type. """ MANUAL = 0 @@ -38,7 +38,7 @@ class ControlPointSelection(enum.IntEnum): PROGRAMCONTROLLED = 1 """Program controlled spline control point selection.""" -class SplineRefinementType(enum.IntEnum): +class SplineRefinementType(enum.Enum): """Type of spline refinement. Currently, supports h-refinement and p-refinement. """ H = 0 @@ -46,7 +46,7 @@ class SplineRefinementType(enum.IntEnum): P = 1 """P refinement of spline.""" -class SplineFeatureCaptureType(enum.IntEnum): +class SplineFeatureCaptureType(enum.Enum): """Options to capture features in spline. """ IGNORE = 0 @@ -56,7 +56,7 @@ class SplineFeatureCaptureType(enum.IntEnum): BYEDGES = 2 """Use edges for capturing features in spline.""" -class SplineContinuityType(enum.IntEnum): +class SplineContinuityType(enum.Enum): """Spline Continuity types. """ CUBICC0 = 0 diff --git a/src/ansys/meshing/prime/autogen/materialpointmanagerstructs.py b/src/ansys/meshing/prime/autogen/materialpointmanagerstructs.py index b7a99cade6..1417fb8733 100644 --- a/src/ansys/meshing/prime/autogen/materialpointmanagerstructs.py +++ b/src/ansys/meshing/prime/autogen/materialpointmanagerstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class MaterialPointType(enum.IntEnum): +class MaterialPointType(enum.Enum): """Defines define type of material point. """ DEAD = 0 diff --git a/src/ansys/meshing/prime/autogen/morpherbcsstructs.py b/src/ansys/meshing/prime/autogen/morpherbcsstructs.py index bb5a8de537..41c85545fd 100644 --- a/src/ansys/meshing/prime/autogen/morpherbcsstructs.py +++ b/src/ansys/meshing/prime/autogen/morpherbcsstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class BCsVolumetricModality(enum.IntEnum): +class BCsVolumetricModality(enum.Enum): """Indicate options to identify morphable region in input volumetric mesh. """ BOX = 1 diff --git a/src/ansys/meshing/prime/autogen/morpherstructs.py b/src/ansys/meshing/prime/autogen/morpherstructs.py index a364a35007..eb2987b5b7 100644 --- a/src/ansys/meshing/prime/autogen/morpherstructs.py +++ b/src/ansys/meshing/prime/autogen/morpherstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class BCPairType(enum.IntEnum): +class BCPairType(enum.Enum): """Option to specify boundary condition pair type. """ FACE = 1 @@ -38,7 +38,7 @@ class BCPairType(enum.IntEnum): EDGE = 2 """Option to specify edge zonelet as boundary condition pair.""" -class MatchPairTargetType(enum.IntEnum): +class MatchPairTargetType(enum.Enum): """Match morph target type. """ FACEZONELET = 1 diff --git a/src/ansys/meshing/prime/autogen/partstructs.py b/src/ansys/meshing/prime/autogen/partstructs.py index e7978de104..63a5d2f347 100644 --- a/src/ansys/meshing/prime/autogen/partstructs.py +++ b/src/ansys/meshing/prime/autogen/partstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class CellZoneletType(enum.IntEnum): +class CellZoneletType(enum.Enum): """Types of cell zonelet. """ DEAD = 0 @@ -40,7 +40,7 @@ class CellZoneletType(enum.IntEnum): SOLID = 17 """Cell zonelet type is solid.""" -class ZoneType(enum.IntEnum): +class ZoneType(enum.Enum): """ZoneType decides the type of zone. """ EDGE = 1 @@ -50,7 +50,7 @@ class ZoneType(enum.IntEnum): VOLUME = 3 """Denotes the zone is volume zone.""" -class VolumeNamingType(enum.IntEnum): +class VolumeNamingType(enum.Enum): """Indicate source types used to name volume zones. """ BYFACELABEL = 1 @@ -60,7 +60,7 @@ class VolumeNamingType(enum.IntEnum): BYFACENORMALS = 4 """Option to use face normal as source to name volume zones. Here, the volume zones with face normal into the volume are considered as dead and volume zones with face normal outwards from the volume are considered as solid..""" -class CreateVolumeZonesType(enum.IntEnum): +class CreateVolumeZonesType(enum.Enum): """Indicate type to create volume zones for volumes. """ NONE = 0 @@ -70,7 +70,7 @@ class CreateVolumeZonesType(enum.IntEnum): PERNAMESOURCE = 2 """Option to create zone per name computed from face zonelets of volume. Single zone is created for multiple volumes if same zone name is identified using face zonelets for the volumes.""" -class BodyQueryType(enum.IntEnum): +class BodyQueryType(enum.Enum): """Indicates type of entity to query in part. """ ALL = 0 diff --git a/src/ansys/meshing/prime/autogen/primeconfig.py b/src/ansys/meshing/prime/autogen/primeconfig.py index f68e89f96c..2779571ab0 100644 --- a/src/ansys/meshing/prime/autogen/primeconfig.py +++ b/src/ansys/meshing/prime/autogen/primeconfig.py @@ -29,7 +29,7 @@ import numpy as np -class ErrorCode(enum.IntEnum): +class ErrorCode(enum.Enum): """Error codes associated with the failure of PyPrimeMesh operation. """ NOERROR = 0 @@ -845,7 +845,7 @@ class ErrorCode(enum.IntEnum): **This is a beta parameter**. **The behavior and name may change in the future**.""" -class WarningCode(enum.IntEnum): +class WarningCode(enum.Enum): """Warning codes associated with the PyPrimeMesh operation. """ NOWARNING = 0 diff --git a/src/ansys/meshing/prime/autogen/prismcontrolstructs.py b/src/ansys/meshing/prime/autogen/prismcontrolstructs.py index 7acfbc7c51..737be02080 100644 --- a/src/ansys/meshing/prime/autogen/prismcontrolstructs.py +++ b/src/ansys/meshing/prime/autogen/prismcontrolstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class PrismControlOffsetType(enum.IntEnum): +class PrismControlOffsetType(enum.Enum): """Offset type for prism control. """ UNIFORM = 0 diff --git a/src/ansys/meshing/prime/autogen/scaffolderstructs.py b/src/ansys/meshing/prime/autogen/scaffolderstructs.py index 33271f4210..3eb1edd6e5 100644 --- a/src/ansys/meshing/prime/autogen/scaffolderstructs.py +++ b/src/ansys/meshing/prime/autogen/scaffolderstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class ScaffolderRepairMode(enum.IntEnum): +class ScaffolderRepairMode(enum.Enum): """Mode of Scaffolder repair to be used. """ DEFAULT = 0 @@ -42,7 +42,7 @@ class ScaffolderRepairMode(enum.IntEnum): **This is a beta parameter**. **The behavior and name may change in the future**.""" -class IntersectionMask(enum.IntEnum): +class IntersectionMask(enum.Enum): """Scaffold parameters use intersection mask to define nature of intersection computation. """ EDGEEDGE = 1 @@ -52,7 +52,7 @@ class IntersectionMask(enum.IntEnum): FACEFACEANDEDGEEDGE = 3 """Perform face to face and edge to edge intersections.""" -class EdgeMergeControl(enum.IntEnum): +class EdgeMergeControl(enum.Enum): """Specifies type of edge pairs to be merged during scaffold operation. """ ALLTOALL = 1 diff --git a/src/ansys/meshing/prime/autogen/sizecontrolstructs.py b/src/ansys/meshing/prime/autogen/sizecontrolstructs.py index cee0bdd9f7..024589d319 100644 --- a/src/ansys/meshing/prime/autogen/sizecontrolstructs.py +++ b/src/ansys/meshing/prime/autogen/sizecontrolstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class SizingType(enum.IntEnum): +class SizingType(enum.Enum): """Sizing type decides the type of size control. """ CURVATURE = 0 diff --git a/src/ansys/meshing/prime/autogen/surfacesearchstructs.py b/src/ansys/meshing/prime/autogen/surfacesearchstructs.py index 93896dfeb9..47fd389be3 100644 --- a/src/ansys/meshing/prime/autogen/surfacesearchstructs.py +++ b/src/ansys/meshing/prime/autogen/surfacesearchstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class ThinStripType(enum.IntEnum): +class ThinStripType(enum.Enum): """The type to identify strip of face elements as thin strips using shape formed by features around the strip of face elements. """ ALL = 0 diff --git a/src/ansys/meshing/prime/autogen/surfaceutilitystructs.py b/src/ansys/meshing/prime/autogen/surfaceutilitystructs.py index 9e8b4dab5e..1d7f7c0894 100644 --- a/src/ansys/meshing/prime/autogen/surfaceutilitystructs.py +++ b/src/ansys/meshing/prime/autogen/surfaceutilitystructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class SmoothType(enum.IntEnum): +class SmoothType(enum.Enum): """Indicates the the type of operation to be performed during the smooth dihedral face nodes operation. """ SMOOTH = 1 @@ -42,7 +42,7 @@ class SmoothType(enum.IntEnum): **This is a beta parameter**. **The behavior and name may change in the future**.""" -class FlowDirection(enum.IntEnum): +class FlowDirection(enum.Enum): """Flow or wake direction for BOI creation. """ X = 1 @@ -52,7 +52,7 @@ class FlowDirection(enum.IntEnum): Z = 3 """Flow or wake inflation in the Z direction for BOI creation.""" -class ContactPatchAxis(enum.IntEnum): +class ContactPatchAxis(enum.Enum): """Flow or wake direction for BOI creation. """ X = 1 @@ -62,7 +62,7 @@ class ContactPatchAxis(enum.IntEnum): Z = 3 """Flow or wake inflation in the Z direction for BOI creation.""" -class BOIType(enum.IntEnum): +class BOIType(enum.Enum): """BOI type for BOI creation. """ OFFSETBOX = 1 diff --git a/src/ansys/meshing/prime/autogen/surferstructs.py b/src/ansys/meshing/prime/autogen/surferstructs.py index ee46530228..468f0a3022 100644 --- a/src/ansys/meshing/prime/autogen/surferstructs.py +++ b/src/ansys/meshing/prime/autogen/surferstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class AdvancedSurferSetup(enum.IntEnum): +class AdvancedSurferSetup(enum.Enum): """Define advanced settings for remeshing operation. """ NONE = 0 diff --git a/src/ansys/meshing/prime/autogen/toposearchstructs.py b/src/ansys/meshing/prime/autogen/toposearchstructs.py index 1629a4a43b..305402f7b3 100644 --- a/src/ansys/meshing/prime/autogen/toposearchstructs.py +++ b/src/ansys/meshing/prime/autogen/toposearchstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class TopoSearchField(enum.IntEnum): +class TopoSearchField(enum.Enum): """Toposearch diagnostic field. """ OVERLAPPINGTOPOFACES = 0 diff --git a/src/ansys/meshing/prime/autogen/trimmedsplinestructs.py b/src/ansys/meshing/prime/autogen/trimmedsplinestructs.py index 92c5b7f206..ed4b8d80d2 100644 --- a/src/ansys/meshing/prime/autogen/trimmedsplinestructs.py +++ b/src/ansys/meshing/prime/autogen/trimmedsplinestructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class TrimmedSolidSplineCutMode(enum.IntEnum): +class TrimmedSolidSplineCutMode(enum.Enum): """Types of Cut modes used to generate Cartesian grid representing subdomains of trimmed solid spline. """ HYBRID = 0 diff --git a/src/ansys/meshing/prime/autogen/wrapperstructs.py b/src/ansys/meshing/prime/autogen/wrapperstructs.py index cf907eb607..7c0c5e99fc 100644 --- a/src/ansys/meshing/prime/autogen/wrapperstructs.py +++ b/src/ansys/meshing/prime/autogen/wrapperstructs.py @@ -30,7 +30,7 @@ from ansys.meshing.prime.params.primestructs import * -class WrapRegion(enum.IntEnum): +class WrapRegion(enum.Enum): """Indicates source type to extract wrapper region. """ MATERIALPOINT = 0 diff --git a/src/ansys/meshing/prime/core/mesh.py b/src/ansys/meshing/prime/core/mesh.py index ddc3d339f7..84d81ad8ad 100644 --- a/src/ansys/meshing/prime/core/mesh.py +++ b/src/ansys/meshing/prime/core/mesh.py @@ -41,7 +41,7 @@ from ansys.meshing.prime.params.primestructs import CommunicationManager -class ColorByType(enum.IntEnum): +class ColorByType(enum.Enum): """Contains the zone types to display.""" ZONE = 0 @@ -66,7 +66,7 @@ class ColorByType(enum.IntEnum): ) -class DisplayMeshType(enum.IntEnum): +class DisplayMeshType(enum.Enum): """Contains the mesh types to display.""" TOPOFACE = 0 diff --git a/src/ansys/meshing/prime/graphics/plotter.py b/src/ansys/meshing/prime/graphics/plotter.py index 43bf7234bc..20a7174b79 100644 --- a/src/ansys/meshing/prime/graphics/plotter.py +++ b/src/ansys/meshing/prime/graphics/plotter.py @@ -53,7 +53,7 @@ ) -class ColorByType(enum.IntEnum): +class ColorByType(enum.Enum): """Contains the zone types to display.""" ZONE = 0 diff --git a/src/ansys/meshing/prime/graphics/widgets/color_by_type.py b/src/ansys/meshing/prime/graphics/widgets/color_by_type.py index 4b809daed0..d53ec50a9c 100644 --- a/src/ansys/meshing/prime/graphics/widgets/color_by_type.py +++ b/src/ansys/meshing/prime/graphics/widgets/color_by_type.py @@ -51,7 +51,7 @@ ) -class ColorByType(enum.IntEnum): +class ColorByType(enum.Enum): """Contains the zone types to display.""" ZONE = 0 diff --git a/src/ansys/meshing/prime/lucid/mesh_util.py b/src/ansys/meshing/prime/lucid/mesh_util.py index 3eb265dd9b..3f1ac0add6 100644 --- a/src/ansys/meshing/prime/lucid/mesh_util.py +++ b/src/ansys/meshing/prime/lucid/mesh_util.py @@ -31,7 +31,7 @@ from .utils import check_name_pattern -class LabelToZoneMethod(enum.IntEnum): +class LabelToZoneMethod(enum.Enum): """Provides for creating zones from labels.""" SIMPLE = 0