Skip to content

Commit 32c7d5f

Browse files
clewis7kushalkolar
andauthored
Update fastplotlib/graphics/_base.py
Co-authored-by: Kushal Kolar <kushalkolar@gmail.com>
1 parent 201b75c commit 32c7d5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fastplotlib/graphics/_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ def _set_world_object(self, wo: pygfx.WorldObject):
289289
if isinstance(
290290
child, (pygfx.Image, pygfx.Volume, pygfx.Points, pygfx.Line)
291291
):
292-
# need to call int() on it since it's a numpy array with 1 element
293-
# and numpy arrays aren't hashable
292+
# unique 32 bit integer id for each world object
294293
global_id = child.id
295294
WORLD_OBJECT_TO_GRAPHIC[global_id] = self
296295
# store id to pop from dict when graphic is deleted

0 commit comments

Comments
 (0)