Skip to content

Commit

Permalink
set seed
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 22, 2024
1 parent c67d6c4 commit bba585d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_vispy_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bba585d

Please sign in to comment.