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 14, 2024
1 parent eb2de0a commit 7d806c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user/psava/Msmopick.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ def myMedian(a,n):

wgh /= np.max(wgh)
pckmed = np.median(pck)
#pckmed = np.median(pck[pck < 0.9*l1 ])
#print(pckmed,file=sys.stderr)

wgh = np.where(np.abs(pck) < 0.9*l1, wgh, 0.0)
pck = np.where(np.abs(pck) < 0.9*l1, pck, pckmed)
pck = np.where(np.abs(pck) < 0.9*l1, pck, 0.0)

if mode == 0: # use mean
print("USE MEAN",mode,file=sys.stderr)
Expand Down

0 comments on commit 7d806c3

Please sign in to comment.