Skip to content

Commit

Permalink
Correct an error in the testing file
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Lemaitre committed May 9, 2016
1 parent 79e41cd commit 4c1bc0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions protoclass/utils/tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ def test_check_modality_gt_mod_not_read():
# Create an object to handle the data
t2w_mod = T2WModality()

print t2w_mod.is_read()

# Load the GT data
path_gt = [os.path.join(currdir, 'data', 'gt_folders', 'prostate')]
label_gt = ['prostate']
Expand All @@ -272,7 +274,6 @@ def test_check_modality_gt_not_read():
path_data = os.path.join(currdir, 'data', 't2w')
# Create an object to handle the data
t2w_mod = T2WModality()
t2w_mod.read_data_from_path(path_data)

# Load the GT data
path_gt = [os.path.join(currdir, 'data', 'full_gt', 'prostate')]
Expand All @@ -283,8 +284,9 @@ def test_check_modality_gt_not_read():
assert_raises(ValueError, check_modality_gt, t2w_mod, gt_mod, label_gt[0])


def test_check_modality_gt_mod_not_read():
"""Test if an error is raised when the modality is not read."""
def test_check_modality_gt():
"""Test the routine to check the consistency of the modality and
the ground-truth."""

# Try to fit an object with another modality
currdir = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 4c1bc0e

Please sign in to comment.