From af458c9c6f6335972718bb63b239472551ffcb4d Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Mon, 25 Sep 2023 13:33:06 +0200 Subject: [PATCH] fix ? --- ostap/fitting/tests/test_fitting_models.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ostap/fitting/tests/test_fitting_models.py b/ostap/fitting/tests/test_fitting_models.py index a6451290..fc0f9dd4 100755 --- a/ostap/fitting/tests/test_fitting_models.py +++ b/ostap/fitting/tests/test_fitting_models.py @@ -16,8 +16,7 @@ __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 @@ -25,6 +24,8 @@ 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 # ============================================================================= @@ -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 = [] @@ -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 )