@@ -598,9 +598,9 @@ def test_prescribed_settlement_no_load():
598598 r = ba .beam_results .R
599599 assert r == pytest .approx (
600600 [
601- - 3 * EI * delta / L ** 3 , # vertical reaction at A
602- - 3 * EI * delta / L ** 2 , # moment reaction at A
603- 3 * EI * delta / L ** 3 , # vertical reaction at B
601+ - 3 * EI * delta / L ** 3 , # vertical reaction at A
602+ - 3 * EI * delta / L ** 2 , # moment reaction at A
603+ 3 * EI * delta / L ** 3 , # vertical reaction at B
604604 ],
605605 abs = 1e-6 ,
606606 )
@@ -674,7 +674,7 @@ def test_spring_prescribed_displacement_error():
674674 ks = 1e5
675675 w = 10.0
676676 R = [- 1 , 0 , ks , 0 , - 1 , 0 ]
677- LM = [[1 , 1 , w , 0 , 0 ]] # UDL on span 1 → non-zero CNL at DOF 2
677+ LM = [[1 , 1 , w , 0 , 0 ]] # UDL on span 1 → non-zero CNL at DOF 2
678678 D = [None , None , - 0.005 , None , None , None ]
679679
680680 ba = cba .BeamAnalysis (L , EI , R , LM , D = D )
@@ -976,10 +976,10 @@ def test_trapezoidal_factor_LM():
976976 gamma = 1.5
977977 LM_f = factor_LM (LM , gamma )
978978
979- assert LM_f [0 ][2 ] == pytest .approx (6.0 ) # w1 * 1.5
979+ assert LM_f [0 ][2 ] == pytest .approx (6.0 ) # w1 * 1.5
980980 assert LM_f [0 ][3 ] == pytest .approx (15.0 ) # w2 * 1.5
981- assert LM_f [0 ][4 ] == pytest .approx (2.0 ) # a unchanged
982- assert LM_f [0 ][5 ] == pytest .approx (5.0 ) # c unchanged
981+ assert LM_f [0 ][4 ] == pytest .approx (2.0 ) # a unchanged
982+ assert LM_f [0 ][5 ] == pytest .approx (5.0 ) # c unchanged
983983
984984
985985def test_unstable_structure_error ():
@@ -989,10 +989,9 @@ def test_unstable_structure_error():
989989 """
990990 L = [5.0 ]
991991 EI = 30 * 600e7 * 1e-6
992- R = [0 , 0 , 0 , 0 ] # no supports → singular stiffness matrix
992+ R = [0 , 0 , 0 , 0 ] # no supports → singular stiffness matrix
993993 LM = [[1 , 1 , 10 , 0 , 0 ]]
994994
995995 ba = cba .BeamAnalysis (L , EI , R , LM )
996996 with pytest .raises (ValueError , match = "geometrically unstable" ):
997997 ba .analyze ()
998-
0 commit comments