@@ -56,16 +56,16 @@ def tearDown(self):
5656 pass
5757
5858 def allallfunc (self , A , B , func = np .allclose ):
59- """ Checks assertTrue(func()) as it iterates through A, B. """
59+ """Checks assertTrue(func()) as it iterates through A, B."""
6060 for (a , b ) in zip (A , B ):
6161 self .assertTrue (func (a , b ))
6262
6363 def allallid (self , A , B_ids , func = np .allclose ):
64- """ Checks id(a) matches b_id for (a, b_id) in zip(A, B_ids). """
64+ """Checks id(a) matches b_id for (a, b_id) in zip(A, B_ids)."""
6565 return self .allallfunc (A , B_ids , func = lambda x , y : id (x ) == y )
6666
6767 def testBlkDiagMatrixCompat (self ):
68- """ Check incompatible matrix raises exception. """
68+ """Check incompatible matrix raises exception."""
6969 # Create a differently shaped matrix
7070 x = BlkDiagMatrix .from_list (self .blk_a [1 :- 1 ])
7171 # code should raise
@@ -208,7 +208,7 @@ def testBlkDiagMatrixDeepCopy(self):
208208 self .allallfunc (blk_a_copy_2 , self .blk_a )
209209
210210 def testBlkDiagMatrixInPlace (self ):
211- """ Tests sequence of in place optimized arithmetic (add, sub, mul) """
211+ """Tests sequence of in place optimized arithmetic (add, sub, mul)"""
212212 _ = [x + x + 10.0 for x in self .blk_a ]
213213 _ = [np .ones (x .shape ) * 5.0 for x in self .blk_a ]
214214
@@ -316,7 +316,7 @@ def testBlkDiagMatrixIsFinite(self):
316316 self .assertFalse (blk_nan .isfinite )
317317
318318 def testBlkDiagMatrixDense (self ):
319- """ Test we correctly compute the right shape and array. """
319+ """Test we correctly compute the right shape and array."""
320320 self .assertTrue (np .allclose (self .dense , self .blk_a .dense ()))
321321
322322 def testBlkDiagMatrixArith (self ):
0 commit comments