Skip to content

Commit acab599

Browse files
committed
numpy2.0
1 parent bc28813 commit acab599

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

BayesicFitting/test/TestFitter.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,21 @@ def testNormalize( self ):
169169

170170
print( fmt( fitter.hessian ) )
171171

172-
ppp = fitter.fit( y, plot=self.doplot )
173-
print( ppp )
174-
# self.assertRaises( numpy.linalg.linalg.LinAlgError, fitter.fit, y )
172+
# ppp = fitter.fit( y, plot=self.doplot )
173+
# print( ppp )
174+
self.assertRaises( numpy.linalg.linalg.LinAlgError, fitter.fit, y )
175175

176176
fitter.normalize( [0.0, 0.0, 1.0, 0.0], 1.0 ) ## fix par[2] at 1.0
177177

178-
print( fmt( fitter.hessian ) )
179-
print( fmt( fitter.covariance ) )
180-
181178
par = fitter.fit( y, plot=self.doplot )
182179

183180
print( "param = ", sm.parameters )
184181
assertAAE( par[2], 1.0 )
185182
assertAAE( par, [ -0.5, 1.0, 1.0, -0.2], 1 )
186183

184+
print( fmt( fitter.hessian ) )
185+
print( fmt( fitter.covariance ) )
186+
187187
chisq = fitter.chisq
188188
print( "chisq = %f"%( chisq) )
189189

0 commit comments

Comments
 (0)