Commit 145cb152 authored by Christoph Ruegge's avatar Christoph Ruegge
Browse files

Fix some syntax warnings

parent 7e8e5550
......@@ -121,7 +121,7 @@ class P_Sparsity_Superpixel(P_Sparsity):
# Set the superpixel size:
self.superpixel_size = experiment.superpixel_size
# Bin the support:
if self.support is not 1:
if self.support != 1:
self.support = bin_array(self.support, self.superpixel_size)
self.support = self.support / max(self.support)
# Assert that the binning+upsampling conserves the array size
......
......@@ -72,7 +72,7 @@ def procrustes(X, Y, scaling=True, reflection='best'):
V = Vt.T
T = np.dot(V, U.T)
if reflection is not 'best':
if reflection != 'best':
# does the current solution use a reflection?
have_reflection = np.linalg.det(T) < 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment