diff --git a/CHANGELOG.md b/CHANGELOG.md index 787134a..7301023 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security - N/A +## [26.0.4] + +### Added +- N/A + +### Changed +- N/A + +### Deprecated +- N/A + +### Removed +- N/A + +### Fixed +- Fixed `GeomType` enum not being exposed in package `__init__.py` - users can now import it directly with `from moldflow import GeomType` +- Fixed invalid `DUAL_DOMAIN` enum value in `GeomType` - replaced with `FUSION = "Fusion"` to match valid Moldflow API values +- Fixed missing `-> bool` return type annotations for `MeshGenerator.generate()` and `MeshGenerator.save_options()` methods + +### Security +- N/A + ## [26.0.3] ### Added @@ -93,7 +115,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial version aligned with Moldflow Synergy 2026.0.1 - Python 3.10-3.13 compatibility -[Unreleased]: https://github.com/Autodesk/moldflow-api/compare/v26.0.2...HEAD +[Unreleased]: https://github.com/Autodesk/moldflow-api/compare/v26.0.4...HEAD +[26.0.4]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.4 +[26.0.3]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.3 [26.0.2]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.2 [26.0.1]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.1 [26.0.0]: https://github.com/Autodesk/moldflow-api/releases/tag/v26.0.0 diff --git a/src/moldflow/__init__.py b/src/moldflow/__init__.py index 0a8f1cc..d43f07a 100644 --- a/src/moldflow/__init__.py +++ b/src/moldflow/__init__.py @@ -69,6 +69,7 @@ from .common import EdgeDisplayOptions from .common import EntityType from .common import GradingFactor +from .common import GeomType from .common import ImportUnitIndex from .common import ImportUnits from .common import ItemType diff --git a/src/moldflow/common.py b/src/moldflow/common.py index 60569c1..d55b5cd 100644 --- a/src/moldflow/common.py +++ b/src/moldflow/common.py @@ -408,7 +408,7 @@ class GeomType(Enum): """ AUTO_DETECT = "Auto-Detect" - DUAL_DOMAIN = "Dual Domain" + FUSION = "Fusion" MIDPLANE = "Midplane" diff --git a/src/moldflow/mesh_generator.py b/src/moldflow/mesh_generator.py index 8de811c..25e6813 100644 --- a/src/moldflow/mesh_generator.py +++ b/src/moldflow/mesh_generator.py @@ -37,16 +37,22 @@ def __init__(self, _mesh_generator): process_log(__name__, LogMessage.CLASS_INIT, locals(), name="MeshGenerator") self.mesh_generator = safe_com(_mesh_generator) - def generate(self): + def generate(self) -> bool: """ Generate the mesh using the MeshGenerator instance. + + Returns: + bool: True if mesh generation was successful, False otherwise. """ process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="generate") return self.mesh_generator.Generate - def save_options(self): + def save_options(self) -> bool: """ Save the mesh generation options. + + Returns: + bool: True if options were saved successfully, False otherwise. """ process_log(__name__, LogMessage.FUNCTION_CALL, locals(), name="save_options") return self.mesh_generator.SaveOptions diff --git a/tests/api/unit_tests/test_unit_mesh_generator.py b/tests/api/unit_tests/test_unit_mesh_generator.py index fdc2697..3dda457 100644 --- a/tests/api/unit_tests/test_unit_mesh_generator.py +++ b/tests/api/unit_tests/test_unit_mesh_generator.py @@ -6,8 +6,8 @@ """ import pytest -from moldflow import MeshGenerator -from moldflow.common import ( +from moldflow import ( + MeshGenerator, GeomType, NurbsAlgorithm, CoolType, diff --git a/version.json b/version.json index e6f778a..a0e2533 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { "major": "26", "minor": "0", - "patch": "3" + "patch": "4" }