Skip to content

Commit

Permalink
ruff checks
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandBERTINJOHANNET committed Sep 26, 2024
1 parent c3cad6e commit 3e26742
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shimmer/modules/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ def set_step_limit(self, step_limit: int):
step_limit (`int`): Maximum number of steps to run the loop.
"""
if step_limit > self.n_steps:
raise ValueError(f"Step limit cannot exceed the maximum n_steps ({self.n_steps}).")
raise ValueError(
f"Step limit cannot exceed the maximum n_steps ({self.n_steps})."
)
self.step_limit = step_limit

def fuse_weighted_encodings(
Expand Down

0 comments on commit 3e26742

Please sign in to comment.