Skip to content

Commit

Permalink
fix: change version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo-Baussart-ANSYS committed Dec 6, 2024
1 parent c047105 commit 9e28ee6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ansys/dpf/core/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from typing import Union

from ansys import dpf
from ansys.dpf.core import dpf_operator, errors, inputs, outputs
from ansys.dpf.core import dpf_operator, inputs, outputs
from ansys.dpf.core.check_version import (
server_meet_version,
version_requires,
Expand Down Expand Up @@ -963,6 +963,7 @@ def to_graphviz(self, path: Union[os.PathLike, str]):
"""Saves the workflow to a GraphViz file."""
return self._api.work_flow_export_graphviz(self, str(path))

@version_requires("10.0")
def get_topology(self):
"""Get the topology of the workflow.
Expand All @@ -974,8 +975,6 @@ def get_topology(self):
-----
Available from 10.0 server version.
"""
if not self._server.meet_version("10.0"):
raise errors.DpfVersionNotSupported("10.0")
workflow_to_workflow_topology_op = dpf_operator.Operator(
"workflow_to_workflow_topology", server=self._server
)
Expand Down

0 comments on commit 9e28ee6

Please sign in to comment.