Skip to content

Commit

Permalink
chore: change elif to if
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Candido <[email protected]>
  • Loading branch information
stavros11 and alecandido authored Jan 17, 2025
1 parent 141e92f commit dd403af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibolab/_core/instruments/qm/program/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _qua_for_loop(variables: list[Variable], values: list[npt.NDArray]):

if len(array) == 0:
raise ValueError("Sweeper values must have length > 0.")
elif len(array) == 1:
if len(array) == 1:
return for_(var, array[0], var <= array[0], var + 1)

if not isinstance(var, Variable):
Expand Down

0 comments on commit dd403af

Please sign in to comment.