Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Oct 9, 2024
1 parent 36c349d commit a32dcbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .aux/test_with_lcg
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ CMTCONFIG=$2
source /cvmfs/sft.cern.ch/lcg/views/${LCG}/${CMTCONFIG}/setup.sh
source build/INSTALL/thisostap.sh
cd build
ctest -N && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && ctest -j4 --output-on-failure --test-output-size-failed=5000000
ctest -N && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && ctest -j2 -R gof --output-on-failure --test-output-size-failed=5000000

8 changes: 4 additions & 4 deletions ostap/stats/gof_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def __call__ ( self , N , silent = True ) :
## Run NN-permutations in parallel using joblib
def joblib_run ( self , NN , silent = True ) :
""" Run NN-permutations in parallel using joblib """
nj = 4 * numcpu () + 4
nj = 3 * numcpu () + 4
lst = splitter ( NN , nj )
##
conf = { 'n_jobs' : -1 , 'verbose' : 0 }
Expand All @@ -300,7 +300,7 @@ def joblib_run ( self , NN , silent = True ) :
with warnings.catch_warnings():
warnings.simplefilter ( "ignore" ) ## , category = DeprecationWarning )
results = jl.Parallel ( **conf ) ( input )
for r in progress_bar ( results , max_value = nj , silent = silent , description = 'Jobs:') :
for r in progress_bar ( results , max_value = nj , silent = silent , description = 'Permutations:') :
counter += r
##
return counter
Expand All @@ -319,7 +319,7 @@ def joblib_run ( self , NN , silent = True ) :
## Run NN-permutations in parallel using WorkManager
def pp_run ( self , NN , silent = True ) :
""" Run NN-permutations in parallel using WorkManager"""
nj = 4 * numcpu () + 4
nj = 3 * numcpu () + 4
lst = splitter ( NN , nj )
##
from ostap.parallel.parallel import WorkManager
Expand Down Expand Up @@ -374,7 +374,7 @@ def __call__ ( self , N , silent = True ) :
## Run N-toys in parallel using WorkManager
def run ( self , NN , silent = False ) :
""" Run NN-permutations in parallel using WorkManager"""
nj = 4 * numcpu () + 4
nj = 3 * numcpu () + 4
lst = splitter ( NN , nj )
##
from ostap.parallel.parallel import WorkManager
Expand Down

0 comments on commit a32dcbf

Please sign in to comment.