diff --git a/bob/learn/misc/test_ivector.py b/bob/learn/misc/test_ivector.py index f111042df5e5216aa224dabf5a6e8d17f168cb85..f16638ae36449f9fc9a9558afb10b012e560fe94 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 = {}