Skip to content

Commit 6adbd51

Browse files
committed
Merge branch 'edge' into replace_named_matrix
2 parents d560fe6 + b8df940 commit 6adbd51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

delphi/polismath/pca_kmeans_rep/named_matrix.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ def update(self,
329329
except (ValueError, TypeError):
330330
# If conversion fails, use NaN
331331
value = np.nan
332+
333+
if normalize_value:
334+
value = self._normalize_vote_value(value, convert_na_to_0=True)
332335

333336
# Make a copy of the current matrix
334337
new_matrix = self._matrix.copy()

0 commit comments

Comments
 (0)