Skip to content

Commit

Permalink
fix: not vs tilde
Browse files Browse the repository at this point in the history
  • Loading branch information
skhrg committed Jan 28, 2024
1 parent 1e7a889 commit 7a92115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megham/mds.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def metric_mds(
if np.any(neg_msk):
logger.warn("Negetive weight found, setting to 0.")
weights[neg_msk] = 0
nfin_msk = not np.isfinite(weights)
nfin_msk = ~np.isfinite(weights)
if np.any(nfin_msk):
logger.warn("Non-finite weight found, setting to 0.")
weights[nfin_msk] = 0
Expand Down

0 comments on commit 7a92115

Please sign in to comment.