Apply suggestions from code review of branch sample-size-sim
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
parent
2fc92fc1ff
commit
a34a9f99c5
1 changed files with 1 additions and 3 deletions
|
|
@ -92,9 +92,7 @@ class SimulatedCamera(BaseCamera):
|
|||
Currently only tests that the sample size is not greater than the canvas size in any dimension.
|
||||
"""
|
||||
# Iterate through elements in both tuples. As strict is False, will use the shorter of the two tuples
|
||||
for _i, (a, b) in enumerate(
|
||||
zip(self.canvas_shape, self.sample_limits, strict=False)
|
||||
):
|
||||
for a, b in zip(self.canvas_shape, self.sample_limits, strict=False):
|
||||
if a < b:
|
||||
raise ValueError(
|
||||
"Canvas size must be bigger than or equal to canvas size"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue