-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adapt the filenames of the predictions in pred_masks as per targ…
…et_suffix (#1173) Fixes #1135 Currently, `--test` command doesn't support multiple annotations for the ground truth. So, adding a test to document this behaviour. Co-authored-by: mariehbourget <54086142+mariehbourget@users.noreply.github.com>
- Loading branch information
1 parent
b9a208d
commit c9e69c9
Showing
4 changed files
with
111 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pytest | ||
|
||
from ivadomed.main import check_multiple_raters | ||
|
||
@pytest.mark.parametrize( | ||
'is_train, loader_params', [ | ||
(False, {"target_suffix": | ||
[["_seg-axon-manual1", "_seg-axon-manual2"], | ||
["_seg-myelin-manual1", "_seg-myelin-manual2"]] | ||
}) | ||
]) | ||
def test_check_multiple_raters(is_train, loader_params): | ||
with pytest.raises(SystemExit): | ||
check_multiple_raters(is_train, loader_params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters