Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: meshng wf update #3356

Merged
merged 12 commits into from
Oct 9, 2024
8 changes: 2 additions & 6 deletions src/ansys/fluent/core/session_base_meshing.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,8 @@ def meshing_utilities(self):
@property
def workflow(self):
"""Datamodel root of workflow."""
if not self._old_workflow:
self._old_workflow = WorkflowMode.CLASSIC_MESHING_MODE.value(
_make_datamodel_module(self, "workflow"),
self.meshing,
self.get_fluent_version(),
)
if self._old_workflow is None:
self._old_workflow = _make_datamodel_module(self, "workflow")
prmukherj marked this conversation as resolved.
Show resolved Hide resolved
return self._old_workflow

def watertight_workflow(self, initialize: bool = True):
Expand Down
5 changes: 0 additions & 5 deletions tests/test_meshing_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def test_nonexistent_attrs(new_meshing_session):
assert not hasattr(meshing.workflow, "xyz")
with pytest.raises(AttributeError) as msg:
meshing.workflow.xyz
assert msg.value.args[0] == "'ClassicMeshingWorkflow' object has no attribute 'xyz'"
prmukherj marked this conversation as resolved.
Show resolved Hide resolved


@pytest.mark.codegen_required
Expand All @@ -242,10 +241,6 @@ def test_old_workflow_structure(new_meshing_session):
assert meshing.workflow.TaskObject["Import Geometry"]
with pytest.raises(AttributeError) as msg:
meshing.workflow.import_geometry
assert (
msg.value.args[0]
== "'ClassicMeshingWorkflow' object has no attribute 'import_geometry'"
)


@pytest.mark.nightly
Expand Down
Loading