Skip to content

Commit

Permalink
Merge branch 'bug/config' of https://github.com/pyansys/pydpf-core in…
Browse files Browse the repository at this point in the history
…to bug/config
  • Loading branch information
cbellot000 committed Dec 11, 2023
2 parents 8d2eee1 + e80c6c3 commit d8f4e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ansys/dpf/core/server_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ def get_api_for_type(self, capi, grpcapi):
return grpcapi

def create_stub_if_necessary(self, stub_name, stub_type):
if self.channel and not (stub_name in self._stubs.keys()):
if self.channel and not stub_name in self._stubs:
self._stubs[stub_name] = stub_type(self.channel)

def get_stub(self, stub_name):
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/dpf/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def get_runtime_client_config(server=None):
"""
from ansys.dpf.core.runtime_config import RuntimeClientConfig
from ansys.dpf import core
from ansys.dpf import core as root
if server is None:
server = core.SERVER
server = root.SERVER
if server is not None and server.has_client():
_api = server.get_api_for_type(
capi=data_processing_capi.DataProcessingCAPI,
Expand Down

0 comments on commit d8f4e34

Please sign in to comment.