From 31475e6f95defa4332a33205fe7c229c5e393f6f Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Tue, 20 Aug 2024 11:43:50 +0100 Subject: [PATCH] Removed superfluous list conversion from example --- examples/animation_callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/animation_callback.py b/examples/animation_callback.py index 793ca4d..e7ce46e 100644 --- a/examples/animation_callback.py +++ b/examples/animation_callback.py @@ -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)