Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Feb 9, 2024
1 parent 30e9598 commit 121ea7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ostap/fitting/pdfbasic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ def check_ranges ( self , dataset , range = '' ) :
if ( hasattr ( v , 'hasMin' ) and not v.hasMin() ) and \
( hasattr ( v , 'hasMax' ) and not v.hasMax() ) : continue

if not v in dataset : continue
if dataset and not v in dataset : continue

vv_minmax = v.minmax ()
if not vv_minmax : continue
Expand Down Expand Up @@ -4338,7 +4338,7 @@ def generate ( self ,
if ybins : self.yvar.bins = ybins
if zbins : self.zvar.bins = zbins

return self.pdf.generate ( varset , *args )
return self.pdf.generate ( varset , *args )

# ========================================================================
## check minmax of the PDF using the random shoots
Expand Down
2 changes: 1 addition & 1 deletion ostap/stats/tests/test_stats_ustat.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def test_stats_ustat_G3D () :
pdf.phi = math.pi/4
pdf.theta = math.pi/4
pdf.psi = math.pi/4

data = pdf.generate ( n )

pdf.fitTo ( data , silent = True )
Expand Down

0 comments on commit 121ea7e

Please sign in to comment.