Skip to content

Commit

Permalink
Merge pull request #1085 from AlexVCaron/AlexVCaron/issue1059
Browse files Browse the repository at this point in the history
Fix Fury upcoming deprecation call
  • Loading branch information
arnaudbore authored Dec 16, 2024
2 parents 63fcfc1 + 845a347 commit b3d22c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions scilpy/io/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
import logging
import os
import pathlib
import zipfile

import requests
import zipfile

from scilpy import SCILPY_HOME

Expand Down
2 changes: 1 addition & 1 deletion scilpy/viz/backends/fury.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def set_viewport(scene, orientation, slice_index, volume_shape, aspect_ratio):
Ratio between viewport's width and height.
"""

scene.projection('parallel')
scene.projection(proj_type='parallel')
camera = initialize_camera(
orientation, slice_index, volume_shape, aspect_ratio)
scene.set_camera(position=camera[CamParams.VIEW_POS],
Expand Down
3 changes: 2 additions & 1 deletion scripts/tests/test_viz_volume_screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
tmp_dir = tempfile.TemporaryDirectory()


def test_screenshot(script_runner):
def test_screenshot(script_runner, monkeypatch):
monkeypatch.chdir(os.path.expanduser(tmp_dir.name))
in_fa = os.path.join(SCILPY_HOME, 'bst', 'fa.nii.gz')

ret = script_runner.run("scil_viz_volume_screenshot.py", in_fa, 'fa.png')
Expand Down

0 comments on commit b3d22c8

Please sign in to comment.