Skip to content

Commit

Permalink
Merge branch 'master' of github.com:scilus/scilpy into slider_bundleseg
Browse files Browse the repository at this point in the history
  • Loading branch information
frheault committed Oct 11, 2024
2 parents bc3b445 + a07a8ec commit 850cf0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/tests/test_labels_from_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from scilpy.io.fetcher import fetch_data, get_testing_files_dict

# If they already exist, this only takes 5 seconds (check md5sum)
fetch_data(get_testing_files_dict(), keys=['atlas.zip'])
fetch_data(get_testing_files_dict(), keys=['tractograms.zip'])
tmp_dir = tempfile.TemporaryDirectory()


Expand Down
8 changes: 7 additions & 1 deletion scripts/tests/test_volume_stats_in_labels.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import tempfile

from scilpy import SCILPY_HOME
from scilpy.io.fetcher import fetch_data, get_testing_files_dict

fetch_data(get_testing_files_dict(), keys=['plot.zip'])
tmp_dir = tempfile.TemporaryDirectory()


def test_help_option(script_runner):
ret = script_runner.run('scil_volume_stats_in_labels.py', '--help')
assert ret.success


def test_execution(script_runner):
def test_execution(script_runner, monkeypatch):
monkeypatch.chdir(os.path.expanduser(tmp_dir.name))
in_map = os.path.join(SCILPY_HOME, 'plot', 'fa.nii.gz')
in_atlas = os.path.join(SCILPY_HOME, 'plot', 'atlas_brainnetome.nii.gz')
atlas_lut = os.path.join(SCILPY_HOME, 'plot', 'atlas_brainnetome.json')
Expand Down

0 comments on commit 850cf0f

Please sign in to comment.