Skip to content

Commit

Permalink
#115 fix no setter for wu.data
Browse files Browse the repository at this point in the history
  • Loading branch information
didillysquat committed Sep 7, 2020
1 parent 55130c9 commit b82fc40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def _rescale_array(max_val, min_val):

def _scale_and_compute_pcoa(self, wu):
dist_array_scaler = self._rescale_array(max_val=wu.data.max(), min_val=wu.data.min())
wu.data = wu.data * dist_array_scaler
pcoa_output = pcoa(wu.data)
wu_data = wu.data * dist_array_scaler
pcoa_output = pcoa(wu_data)
# When the pcoa calculation converts very small eigen values to 0
# In doing this, if there were not large enougher eigen values,
# the sum of the eigen values will add to 0. This will cause a TrueDivide error.
Expand Down

0 comments on commit b82fc40

Please sign in to comment.