Skip to content

Commit

Permalink
chore: variable definition repeated in if branches
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Oct 8, 2024
1 parent 6983b88 commit 9e510db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/qibolab/instruments/qm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,13 @@ def register_port(self, port):
if is_octave:
self.register_port(port.opx_port)
subport = port.opx_port.i
con = subport.device
number = subport.number
if isinstance(subport, (FEMOutput, FEMInput)):
con = subport.device
fem = subport.fem_number
number = subport.number
device["connectivity"] = (con, fem)
self.controllers[con]["fems"][fem]["digital_outputs"][number] = {}
else:
con = subport.device
number = subport.number
device["connectivity"] = con
self.controllers[con]["digital_outputs"][number] = {}

Expand Down

0 comments on commit 9e510db

Please sign in to comment.