Skip to content

Commit fbc1efc

Browse files
committed
Fixed tests of PMGeneralFunctionFit. All tests are passing. Fixed #243
1 parent 4a9ff8b commit fbc1efc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Math-FunctionFit/PMGeneralFunctionFit.class.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Class {
1919
'data',
2020
'dataTruncated'
2121
],
22-
#category : 'Math-FunctionFit'
22+
#category : #'Math-FunctionFit'
2323
}
2424

2525
{ #category : #creation }
@@ -98,7 +98,7 @@ PMGeneralFunctionFit >> evaluate [
9898
|ff|
9999
ff :=PMErrorMinimizer function: errorFunction.
100100
firstResult :=[ff evaluate .ff parameters]
101-
ifError: [:err :rcvr | verbose ifTrue: [self inform: 'ErrorMinimizer was not successful']. nil].
101+
onErrorDo: [ verbose ifTrue: [self inform: 'ErrorMinimizer was not successful']. nil].
102102
firstResult ifNotNil: [go addPointAt: firstResult] .
103103
firstResult := go evaluate .
104104
self errorType =#squared
@@ -107,7 +107,7 @@ ff parameters: firstResult.
107107
ff desiredPrecision: PMFloatingPointMachine new machinePrecision.
108108
ff maximumIterations: 1000 .
109109
result:=[ff evaluate .ff parameters]
110-
ifError: [:err :rcvr |
110+
onErrorDo: [
111111
verbose ifTrue: [self inform: 'last FunctionFit was not successful'].
112112
ff result parameters].
113113
((errorFunction value: result) > (errorFunction value: firstResult)) ifTrue:[

0 commit comments

Comments
 (0)