Skip to content
Snippets Groups Projects
Commit 56774b78 authored by Michele Nottoli's avatar Michele Nottoli
Browse files

Linted.

parent 2728f36d
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,9 @@ class CircularBuffer: ...@@ -26,9 +26,9 @@ class CircularBuffer:
"""Get the last `m` matrices.""" """Get the last `m` matrices."""
if m < 0: if m < 0:
raise ValueError("`m` should be larger than 0.") raise ValueError("`m` should be larger than 0.")
elif m > self.n: if m > self.n:
raise ValueError("`m` should be less than or equal to the buffer `n`.") raise ValueError("`m` should be less than or equal to the buffer `n`.")
elif m > self.count: if m > self.count:
raise ValueError("`m` is larger than the stored matrices.") raise ValueError("`m` is larger than the stored matrices.")
start_idx = (self.index - m) % self.n start_idx = (self.index - m) % self.n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment