Skip to content

Commit

Permalink
modified: user/psava/Msmopick.py
Browse files Browse the repository at this point in the history
  • Loading branch information
psava committed Apr 5, 2024
1 parent d92cab1 commit 6b54413
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions user/psava/Msmopick.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,10 @@ def lapop2D(nx,nz):
print(pckmed,file=sys.stderr)

# data weight
for i in range(nd):
wgh[i] *= np.cos( 2.0 * np.pi * abs((pck[i]-pckmed)/l1) )
#wgh = 0.1 * np.power(wgh-np.min(wgh),wpo)

wgh = np.power(wgh,wpo)
wgh /= np.max(wgh)
#for i in range(nd):
# wgh[i] *= np.cos( 2.0 * np.pi * abs((pck[i]-pckmed)/l1) )
#wgh = np.power(wgh,wpo)
#wgh /= np.max(wgh)
wgh = wgh * 0 + 0.1

# ------------------------------------------------------------
Expand Down

0 comments on commit 6b54413

Please sign in to comment.