Skip to content

Commit

Permalink
fix: Avoid reconnections
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Nov 16, 2024
1 parent a54f669 commit 4a14942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qibolab/_core/instruments/qblox/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def sampling_rate(self) -> int:
return SAMPLING_RATE

def connect(self):
if self.is_connected:
return

self._cluster = find_or_create_instrument(
qblox.Cluster, recreate=True, name=self.name, identifier=self.address
)
Expand Down

0 comments on commit 4a14942

Please sign in to comment.