Skip to content

Commit

Permalink
branch: enable use of evaltemp without branch
Browse files Browse the repository at this point in the history
  • Loading branch information
goi42 committed Aug 23, 2019
1 parent 17619f7 commit 578b604
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/myROOTtypes/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@


class branch(bfch):
def __init__(self, branch, name=None, nBins=0, loBin=0, hiBin=0, units=None, xlabel="", ylabel="",
def __init__(self, branch=None, name=None, nBins=0, loBin=0, hiBin=0, units=None, xlabel="", ylabel="",
set_log_X=False, set_log_Y=False, can_extend=False, c=None, axname=None,
associated_branch=None, uniquenm=None, linecolor=None, markercolor=None, fillcolor=None, fillstyle=None,
hname=None, neededbranchnames=None, datatype=None, evaltemp=None, needednames=None,
nBins_pretty=None, subranges=None,
):
# evaluate some default values
if branch is None and evaltemp is not None:
branch = evaltemp.replace('{0}.', '')
if name is None:
name = branch
if uniquenm is None:
Expand Down

0 comments on commit 578b604

Please sign in to comment.