Skip to content

Commit

Permalink
fix???
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Jan 15, 2025
1 parent ec0f87b commit e1cf6d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ostap/fitting/pdfbasic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2403,8 +2403,8 @@ def make_PDF1 ( self , pdf , xvar = None , *args , **kwargs ) :
"""
if isinstance ( pdf , PDF1 ) :

assert ( not xvar ) or ( xvar is pdf.xvar ) , \
"make_PDF1: Invalid setting of xvar %s vs %s" % ( xvar , pdf.xvar )
assert ( not xvar ) or ( xvar in pdf.vars ) , \
"make_PDF1: Invalid setting of xvar %s vs %s" % ( xvar , pdf.vars )

return pdf , pdf.xvar

Expand Down Expand Up @@ -3712,14 +3712,14 @@ def __str__ ( self ) :
# ===========================================================================
## Make PDF2 object
def make_PDF2 ( self , pdf , xvar = None , yvar = None , *args , **kwargs ) :
"""Make PDF1 object
""" Make PDF2 object
"""
if isinstance ( pdf , PDF2 ) :

assert ( not xvar ) or ( xvar in pdf.vars ) , \
"make_PDF2: Invalid setting of xvar %s vs %s" % ( xvar , pdf.xvar )
"make_PDF2: Invalid setting of xvar %s vs %s" % ( xvar , pdf.vars )
assert ( not yvar ) or ( yvar in pdf.vars ) , \
"make_PDF2: Invalid setting of yvar %s vs %s" % ( yvar , pdf.yvar )
"make_PDF2: Invalid setting of yvar %s vs %s" % ( yvar , pdf.vars )

return pdf, pdf.xvar, pdf.yvar

Expand Down Expand Up @@ -4965,11 +4965,11 @@ def make_PDF3 ( self , pdf , xvar = None , yvar = None , zvar = None , *args , *
if isinstance ( pdf , PDF3 ) :

assert ( not xvar ) or ( xvar in pdf.vars ) , \
"make_PDF3: Invalid setting of xvar %s vs %s" % ( xvar , pdf.xvar )
"make_PDF3: Invalid setting of xvar %s vs %s" % ( xvar , pdf.vars )
assert ( not yvar ) or ( yvar in pdf.vars ) , \
"make_PDF3: Invalid setting of xvar %s vs %s" % ( yvar , pdf.yvar )
"make_PDF3: Invalid setting of xvar %s vs %s" % ( yvar , pdf.vars )
assert ( not zvar ) or ( zvar in pdf.vars ) , \
"make_PDF3: Invalid setting of xvar %s vs %s" % ( xvar , pdf.zvar )
"make_PDF3: Invalid setting of xvar %s vs %s" % ( xvar , pdf.vars )

return pdf, pdf.xvar, pdf.yvar, pdf.zvar

Expand Down

0 comments on commit e1cf6d4

Please sign in to comment.