Skip to content

Commit

Permalink
Update _client.py
Browse files Browse the repository at this point in the history
add server and port to Client __init__ args so don't have to set with separate metaclass
  • Loading branch information
adam-parker1 authored Aug 20, 2024
1 parent 6a0d95c commit f9a6c05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/wrappers/python/pyuda/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ class Client(with_metaclass(ClientMeta, object)):
"""
__metaclass__ = ClientMeta

def __init__(self, debug_level=logging.ERROR):
def __init__(self, server=None, port=None, debug_level=logging.ERROR):
if server is not None:
self.__class__.server = server
if port is not None:
self.__class__.port = port

self.version = __version__
assert self.version == cpyuda.get_build_version().decode(), "mismatching pyuda and c-library versions"

Expand Down

0 comments on commit f9a6c05

Please sign in to comment.