Skip to content

Commit 85e7565

Browse files
committed
Groups: Fix a bug that caused overwriting network edge weights
1 parent 670181b commit 85e7565

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

orangecontrib/network/widgets/OWNxGroups.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def _map_network(self):
159159
else:
160160
weights = None
161161
if self.normalize:
162+
weights = weights.copy() if weights is not None else None
162163
self._normalize_weights(row, col, weights)
163164
row, col = self._map_into_feature_values(row, col)
164165
return Network(

0 commit comments

Comments
 (0)