Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaBelyaev committed Mar 11, 2024
1 parent 441facc commit 7813c67
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ostap/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,8 @@ def n ( self ) :

def __len__ ( self ) :

n = self.__n
n = self.__n
e = self.__edges
return n + 1 if e else n - 1

def __iter__ ( self ) :
Expand Down Expand Up @@ -922,13 +923,16 @@ def __iter__ ( self ) :
fn = 1.0 / float ( n )
e = self.edges

lmn = self.__lmin
lmx = self.__lmx

if e : yield self.vmin

for i in range ( 1 , n ) :
#
f2 = i * fn
f1 = 1 - f2
yield 10.0 ** ( self.__lmin * f1 + f2 * self.__lmax )
yield 10.0 ** ( lmn * f1 + f2 * lmx )

if e : yield self.vmax

Expand Down

0 comments on commit 7813c67

Please sign in to comment.