Skip to content

Commit

Permalink
deep copy the volume transform (#297)
Browse files Browse the repository at this point in the history
* deep copy the volume transform

this is the default value in future vedo releases

* re-enable skipped test
  • Loading branch information
alessandrofelder committed Dec 8, 2023
1 parent 35e2220 commit 47f04f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion brainrender/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _prepare_actor(self, actor):

if isinstance(actor._mesh, VedoVolume):
actor._mesh.permute_axes(2, 1, 0)
actor._mesh.apply_transform(mtx)
actor._mesh.apply_transform(mtx, True)
actor._mesh.transform = (
None # otherwise it gets applied twice
)
Expand Down
1 change: 0 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ def test_video(scene, pytestconfig):
Path.rmdir(video_directory)


@pytest.mark.skip(reason="Temporarily skip until 294 is fixed.")
def test_volumetric_data(scene):
data_path = files("brainrender").joinpath("resources/volume.npy")
data = np.load(data_path)
Expand Down

0 comments on commit 47f04f9

Please sign in to comment.