Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 30, 2024
1 parent 4473779 commit 0ecd845
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibolab/sweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def check_values(self):
object.__setattr__(self, "values", np.arange(*self.range))

if self.parameter is Parameter.amplitude and max(abs(self.values)) > 1:
raise ValueError("Amplitude sweeper cannot have absolute values larger than 1.")
raise ValueError(
"Amplitude sweeper cannot have absolute values larger than 1."
)

return self

Expand Down

0 comments on commit 0ecd845

Please sign in to comment.