Skip to content

Commit

Permalink
DBSTREAM: fix density graph timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
donny741 authored Oct 14, 2023
1 parent 23143c6 commit 8ad4a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions river/cluster/dbstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ def _update(self, x):
except KeyError:
try:
self.s[i][j] = 0
self.s_t[i][j] = 0
self.s_t[i][j] = self._time_stamp
except KeyError:
self.s[i] = {j: 0}
self.s_t[i] = {j: 0}
self.s_t[i] = {j: self._time_stamp}

# prevent collapsing clusters
for i in neighbor_clusters.keys():
Expand Down

0 comments on commit 8ad4a7d

Please sign in to comment.