Skip to content

Commit

Permalink
Fix Ansys R212 compatibility issue. (#486)
Browse files Browse the repository at this point in the history
* Fix an import error when using ansys-grpc-dpf 0.3.0 with Ansys 212 and initializing a support.

* Fix code coverage.
  • Loading branch information
PProfizi committed Sep 16, 2022
1 parent 3480544 commit 4e45cf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansys/dpf/core/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def __init__(self, support, server=None):
# step 1: get server
self._server = server_module.get_or_create_server(server)

if not self._server.meet_version("3.0"): # pragma: no cover
return

# step 2: get api
self._support_api = self._server.get_api_for_type(
capi=support_capi.SupportCAPI,
Expand Down

0 comments on commit 4e45cf1

Please sign in to comment.