From 9e510dbf17277cdea7c71a4ea1121124939b8bcc Mon Sep 17 00:00:00 2001 From: Stavros Efthymiou <35475381+stavros11@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:08:31 +0400 Subject: [PATCH] chore: variable definition repeated in if branches --- src/qibolab/instruments/qm/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qibolab/instruments/qm/config.py b/src/qibolab/instruments/qm/config.py index 74e69d108..578efc24a 100644 --- a/src/qibolab/instruments/qm/config.py +++ b/src/qibolab/instruments/qm/config.py @@ -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] = {}