Skip to content

Commit

Permalink
"is not" changed to "!=" (#85)
Browse files Browse the repository at this point in the history
There was an error in Python 3.8.2: "SyntaxWarning: "is not" with a literal. Did you mean "!="?"
  • Loading branch information
qg0 authored Jul 16, 2020
1 parent 4c14316 commit ed84d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcsi/vcsi.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def compute_blurriness(self, image_path):
b = abs(numpy.fft.rfft2(a))
max_freq = self.avg9x(b)

if max_freq is not 0:
if max_freq != 0:
return 1 / max_freq
else:
return 1
Expand Down

0 comments on commit ed84d44

Please sign in to comment.