Skip to content

Commit

Permalink
fix ?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Sep 25, 2023
1 parent 6729258 commit af458c9
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions ostap/fitting/tests/test_fitting_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@
__author__ = "Ostap developers"
__all__ = () ## nothing to import
# =============================================================================
import ostap.fitting.roofit
import ostap.fitting.models as Models
from ostap.core.meta_info import root_info
from ostap.core.core import cpp, VE, dsID, rooSilent
from ostap.utils.timing import timing
from builtins import range
from ostap.plotting.canvas import use_canvas
from ostap.utils.utils import wait
from ostap.fitting.background import make_bkg
from ostap.logger.colorized import attention
import ostap.fitting.roofit
import ostap.fitting.models as Models
import ostap.logger.table as T
import ROOT, random
# =============================================================================
Expand Down Expand Up @@ -89,6 +90,14 @@
S = model_gauss.S
B = model_gauss.B

conf = {}
if (6,29) <= root_info :
conf = {
'minimizer' : ('Minuit','migrad') ,
## 'minimizer' : ('Fumili','') ,
'hesse' : True ,
'maxcalls' : 1000000 }


stats = {}
results = []
Expand Down Expand Up @@ -343,8 +352,8 @@ def test_apollonios () :
model.B = NB

with rooSilent() :
result, frame = model. fitTo ( dataset0 , silent = True )
result, frame = model. fitTo ( dataset0 , silent = True )
result, frame = model. fitTo ( dataset0 , silent = True , **conf )
result, frame = model. fitTo ( dataset0 , silent = True , **conf )

make_print ( model , result , 'Apollonios model' , logger )

Expand Down

0 comments on commit af458c9

Please sign in to comment.