Skip to content

Commit

Permalink
Improved NLPAR CPU reporting.
Browse files Browse the repository at this point in the history
Signed-off by: David Rowenhorst <[email protected]>
  • Loading branch information
drowenhorst-nrl committed May 23, 2024
1 parent b5ad9fa commit 2ab2696
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyebsdindex/nlpar_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def d2norm(d2, n2, dij, sigma):
lamopt_values = []

for j in range(0,nrows,chunksize):
if verbose >= 2:
print("begin row: ", j, "/", nrows, sep='', end='\r')
#print('Block',j)
#rowstartread = np.int64(max(0,j - nn))
rowstartread = np.int64(j)
Expand Down Expand Up @@ -285,8 +287,7 @@ def d2norm(d2, n2, dij, sigma):


lamopt_values.append(lamopt_values_chnk)
if verbose >= 2:
print("row complete: ", j, "/", nrows, sep='', end='\r')


if verbose >= 2:
print('', end='')
Expand Down Expand Up @@ -393,6 +394,8 @@ def calcnlpar(self, chunksize=0, searchradius=None, lam = None, dthresh = None,

for j in range(0,nrows,chunksize):
#print('Row start', j)
if verbose >= 2:
print("begin row: ", j, "/", nrows, sep='', end='\r')

rowstartread = np.int64(max(0, j-sr))
rowend = min(j + chunksize+sr,nrows)
Expand Down Expand Up @@ -443,8 +446,7 @@ def calcnlpar(self, chunksize=0, searchradius=None, lam = None, dthresh = None,
#return dataout
#sigma[j:j+rowstartcount[1],:] += \
# sigchunk[rowstartcount[0]:rowstartcount[0]+rowstartcount[1],:]
if verbose >= 2:
print("row complete: ", j, "/", nrows, sep='', end='\r')


if verbose >= 2:
print('', end='')
Expand Down

0 comments on commit 2ab2696

Please sign in to comment.