Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions bin/tests/test_wm_cluster_from_atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,21 @@
def test_help_option(script_runner):
ret = script_runner.run(["wm_cluster_from_atlas.py", "--help"])
assert ret.success


# def test_execution(script_runner):
# length = 40
# in_tractography_fname = (
# "registered_subject_output/bundle/output_tractography/bundle_reg.vtk"
# )
# in_atlas_dirname = "ORG-800FC-100HCP"
# out_dirname = "subject_cluster_output"
# ret = script_runner.run(
# "wm_cluster_from_atlas.py",
# "-l",
# length,
# in_tractography_fname,
# in_atlas_dirname,
# out_dirname,
# )
# assert ret.success
19 changes: 19 additions & 0 deletions bin/tests/test_wm_cluster_remove_outliers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

def test_help_option(script_runner):
ret = script_runner.run(["wm_cluster_remove_outliers.py", "--help"])
assert ret.success


# def test_execution(script_runner):
# in_tractography_fname = "subject_cluster_output/bundle_reg"
# in_atlas_fname = "ORG-800FC-100HCP"
# out_dirname = "ORG-800FC-100HCP"
# ret = script_runner.run(
# "wm_cluster_remove_outliers.py",
# in_tractography_fname,
# in_atlas_fname,
# out_dirname,
# )
# assert ret.success
10 changes: 10 additions & 0 deletions bin/tests/test_wm_quality_control_tractography.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def test_help_option(script_runner):
ret = script_runner.run(["wm_quality_control_tractography.py", "--help"])
assert ret.success


# def test_execution(script_runner):
# in_dirname = "input_tractography"
# out_dirname = "qc_output"
# ret = script_runner.run(
# "wm_quality_control_tractography.py", in_dirname, out_dirname,
# )
# assert ret.success
19 changes: 19 additions & 0 deletions bin/tests/test_wm_register_to_atlas_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,22 @@
def test_help_option(script_runner):
ret = script_runner.run(["wm_register_to_atlas_new.py", "--help"])
assert ret.success


# def test_execution(script_runner):
# length = 40
# mode = "affine"
# in_tractography_fname = "input_tractography/bundle.vtk"
# in_atlas_fname = "ORG-RegAtlas-100HCP/registration_atlas.vtk"
# out_dirname = "registered_subject_output"
# ret = script_runner.run(
# "wm_register_to_atlas_new.py",
# "-l",
# length,
# "-mode",
# mode,
# in_tractography_fname,
# in_atlas_fname,
# out_dirname,
# )
# assert ret.success
11 changes: 11 additions & 0 deletions bin/tests/test_wm_separate_clusters_by_hemisphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@
def test_help_option(script_runner):
ret = script_runner.run(["wm_separate_clusters_by_hemisphere.py", "--help"])
assert ret.success


# def test_execution(script_runner):
# in_dirname = "subject_cluster_outlier_removed_output"
# out_dirname = "subject_cluster_separated_output"
# ret = script_runner.run(
# "wm_separate_clusters_by_hemisphere.py",
# in_dirname,
# out_dirname,
# )
# assert ret.success
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@
scripts=list(chain.from_iterable([
glob.glob("bin/[a-zA-Z]*.py"),
glob.glob("utilities/[a-zA-Z]*.py"),
# ['testing/test_run.py']
]))
)
29 changes: 0 additions & 29 deletions testing/test_run.py

This file was deleted.