From bba585defd203b70decced992b768262af57815a Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 22 Jun 2024 17:29:24 -0400 Subject: [PATCH] set seed --- tests/test_vispy_qt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_vispy_qt.py b/tests/test_vispy_qt.py index 4bf68e7..7b682de 100644 --- a/tests/test_vispy_qt.py +++ b/tests/test_vispy_qt.py @@ -10,6 +10,7 @@ qapp = QApplication([]) canvas = scene.SceneCanvas(size=(512, 512)) view = canvas.central_widget.add_view() +np.random.seed(0) vol_data = np.random.rand(64, 64, 64).astype(np.float32) image = scene.visuals.Volume(vol_data, cmap="viridis", parent=view.scene) view.camera = scene.ArcballCamera()