Skip to content

Commit

Permalink
tweak creation of varibales for datatset from tree
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Feb 20, 2024
1 parent 25bc73a commit 33e9ba3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ostap/fitting/pyselectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,10 @@ def __init__ ( self ,
self.__formula = None
if accessor is None :
varname = var.GetName()
accessor = varname

if ( 6 ,30 ) <= root_info : accessor = '1.0*(%s)' % varname
else : accessor = varname

self.__formula = varname

if isinstance ( accessor , str ) :
Expand Down

0 comments on commit 33e9ba3

Please sign in to comment.