From 6899d1fb1814c466c90428de8c23c17970e646e9 Mon Sep 17 00:00:00 2001 From: Vanya Belyaev Date: Tue, 12 Mar 2024 10:52:25 +0100 Subject: [PATCH] fix? --- ostap/fitting/pyselectors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ostap/fitting/pyselectors.py b/ostap/fitting/pyselectors.py index 71a0aee0..d53b8768 100644 --- a/ostap/fitting/pyselectors.py +++ b/ostap/fitting/pyselectors.py @@ -887,9 +887,9 @@ def __init__ ( self , 'Invalid setting of variablesl!' self.__triv_sel = False - if not selection : self.__triv_sel = True - elif tree and tree.valid_formula ( selection ) : self.__triv_sel = True - elif valid_formula ( selectionn , self.varset ) : + if not selection : self.__triv_sel = True + elif tree and tree.valid_formula ( selection ) : self.__triv_sel = True + elif valid_formula ( selection , self.varset ) : if not roo_cuts : roo_cuts = selection else : roo_cuts = '(%s)*(%s)' % ( roo_cuts, selection ) selection = ''