Skip to content

Commit

Permalink
Removed superfluous list conversion from example
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Aug 20, 2024
1 parent 41f76ba commit 31475e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/animation_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
def slc(scene, framen, totframes):
# Get new slicing plane
fact = framen / totframes
shape = list(scene.atlas.shape_um)
shape_um = scene.atlas.shape_um
# Multiply by fact to move the plane, add buffer to go past the brain
point = [(shape[0] + 500) * fact, shape[1] // 2, shape[2] // 2]
point = [(shape_um[0] + 500) * fact, shape_um[1] // 2, shape_um[2] // 2]
plane = scene.atlas.get_plane(pos=point, norm=(1, 0, 0))

scene.slice(plane)
Expand Down

0 comments on commit 31475e6

Please sign in to comment.