Skip to content

Commit

Permalink
PPD does not have to be int
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Sep 22, 2022
1 parent cf8f0ed commit fd72297
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions stimuli/utils/resolution.py
Expand Up @@ -191,13 +191,11 @@ def validate_ppd(ppd):
horizontal = ppd[1]
vertical = ppd[0]

# TODO: check if whole integer?

# Convert to float
if horizontal is not None:
horizontal = int(horizontal)
horizontal = float(horizontal)
if vertical is not None:
vertical = int(vertical)
vertical = float(vertical)

# Check non-negative
if (horizontal is not None and horizontal <= 0) or (
Expand Down

0 comments on commit fd72297

Please sign in to comment.