Skip to content

Commit

Permalink
fix(python): fix bug in neuroglancer.StarredSegments
Browse files Browse the repository at this point in the history
Fixes #510.
  • Loading branch information
jbms committed Dec 26, 2023
1 parent 7acf520 commit 4d01489
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/neuroglancer/viewer_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,10 @@ class StarredSegments(collections.abc.MutableMapping[int, bool]):

def __init__(self, json_data=None, _readonly=False):
self._readonly = _readonly
if json_data is None:
return
self._data = {}
self._visible = {}
if json_data is None:
return
self._update(json_data)

def _update(self, other):
Expand Down Expand Up @@ -719,7 +719,7 @@ def clear(self):
self._visible.clear()

def __repr__(self):
return f"StarredSegments({self._data}!r)"
return f"StarredSegments({self._data!r})"

def update(self, other):
if self._readonly:
Expand Down

0 comments on commit 4d01489

Please sign in to comment.