From e276a8414219bedd880474ea8e454b38b1931ec8 Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Thu, 25 Apr 2024 09:14:01 +0200 Subject: [PATCH] fix? --- ostap/parallel/parallel_statvar.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ostap/parallel/parallel_statvar.py b/ostap/parallel/parallel_statvar.py index 8d2d28aa..ee2acfb3 100644 --- a/ostap/parallel/parallel_statvar.py +++ b/ostap/parallel/parallel_statvar.py @@ -132,19 +132,18 @@ def pStatVar ( chain , from ostap.trees.trees import _stat_vars_ last = min ( n_large , first + nevents if 0 < nevents else n_large ) - - if 0 <= first and 0 < nevents < chunk_size : + + if ( 6 , 18 ) <= root_info < ( 6 , 19 ) and python_info < ( 3 , 0 ) : + print ( 'I AM PSTATVAR/1 ' ) + return chain.statVar ( what , cuts , first , last ) + elif 0 <= first and 0 < nevents < chunk_size : return chain.statVar ( what , cuts , first , last ) elif isinstance ( chain , ROOT.TChain ) : if 1 == chain.nFiles() and len ( chain ) < chunk_size : return chain.statVar ( what , cuts , first , last ) elif isinstance ( chain , ROOT.TTree ) and len ( chain ) < chunk_size : return chain.statVar ( what , cuts , first , last ) - elif ( 6 , 18 ) <= root_info < ( 6 , 19 ) and python_info < ( 3 , 0 ) : - print ( 'I AM PSTATVAR/1 ' ) - return chain.statVar ( what , cuts , first , last ) - - print ( 'I AM PSTATVAR/2 ' ) + from ostap.trees.trees import Chain ch = Chain ( chain , first = first , nevents = nevents )