From ae553cb7be768b711612bd79b23f9d61c54ef557 Mon Sep 17 00:00:00 2001 From: Manuel Guenther <manuel.guenther@idiap.ch> Date: Mon, 15 Sep 2014 13:29:42 +0200 Subject: [PATCH] Removed '== None' warnings. --- bob/learn/misc/test_ivector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/learn/misc/test_ivector.py b/bob/learn/misc/test_ivector.py index f111042..f16638a 100644 --- a/bob/learn/misc/test_ivector.py +++ b/bob/learn/misc/test_ivector.py @@ -37,7 +37,7 @@ class IVectorMachinePy(): self.m_sigma = numpy.random.randn(dim_cd) def precompute(self): - if self.m_ubm and not (self.m_t == None) and not (self.m_sigma == None): + if self.m_ubm and self.m_t is not None and self.m_sigma is not None: dim_c = self.m_ubm.dim_c dim_d = self.m_ubm.dim_d self.m_cache_TtSigmaInv = {} -- GitLab