Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/cqedtoolbox/instruments/qick/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import Pyro4
from qick import QickConfig

from qick.pyro import make_proxy

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -37,11 +37,11 @@ def generate_soccfg(self) -> QickConfig:
:return: soccfg: QickConfig instance.
"""

Pyro4.config.SERIALIZER = 'pickle'
Pyro4.config.PICKLE_PROTOCOL_VERSION = 4
ns = Pyro4.locateNS(host=self.nameserver_host, port=self.nameserver_port)
soc = Pyro4.Proxy(ns.lookup(self.nameserver_name))
soccfg = QickConfig(soc.get_cfg())
soc, soccfg = make_proxy(ns_host = self.nameserver_host,
ns_port = self.nameserver_port,
proxy_name = self.nameserver_name,
remote_traceback = True)

self.soc = soc
self.soccfg = soccfg
logger.info("Generated soccfg")
Expand Down Expand Up @@ -72,4 +72,4 @@ def config(self):
return self.soccfg, conf

def config_(self):
raise NotImplementedError("config_() method must be implemented in subclass")
raise NotImplementedError("config_() method must be implemented in subclass")