Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
b3fb537f
Commit
b3fb537f
authored
1 year ago
by
Daniel CARRON
Committed by
André Anjos
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[test] Update paths
parent
71d129d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mednet/scripts/experiment.py
+1
-1
1 addition, 1 deletion
src/mednet/scripts/experiment.py
tests/test_cli.py
+7
-6
7 additions, 6 deletions
tests/test_cli.py
with
8 additions
and
7 deletions
src/mednet/scripts/experiment.py
+
1
−
1
View file @
b3fb537f
...
...
@@ -141,7 +141,7 @@ def experiment(
ctx
.
invoke
(
evaluate
,
predictions
=
predictions_output
,
output
=
output_folder
,
output
_folder
=
output_folder
,
threshold
=
"
validation
"
,
)
...
...
This diff is collapsed.
Click to expand it.
tests/test_cli.py
+
7
−
6
View file @
b3fb537f
...
...
@@ -404,23 +404,24 @@ def test_evaluate_pasa_montgomery(temporary_basedir):
with
stdout_logging
()
as
buf
:
prediction_path
=
temporary_basedir
/
"
predictions.json
"
output_path
=
temporary_basedir
/
"
evaluation.json
"
evaluation_filename
=
"
evaluation.json
"
evaluation_file
=
temporary_basedir
/
evaluation_filename
result
=
runner
.
invoke
(
evaluate
,
[
"
-vv
"
,
"
montgomery
"
,
f
"
--predictions=
{
str
(
prediction_path
)
}
"
,
f
"
--output
=
{
str
(
output_path
)
}
"
,
f
"
--output
-folder=
{
str
(
temporary_basedir
)
}
"
,
"
--threshold=test
"
,
],
)
_assert_exit_0
(
result
)
assert
output_path
.
exists
()
assert
output_path
.
with_suffix
(
"
.meta.json
"
).
exists
()
assert
output_path
.
with_suffix
(
"
.rst
"
).
exists
()
assert
output_path
.
with_suffix
(
"
.pdf
"
).
exists
()
assert
evaluation_file
.
exists
()
assert
evaluation_file
.
with_suffix
(
"
.meta.json
"
).
exists
()
assert
evaluation_file
.
with_suffix
(
"
.rst
"
).
exists
()
assert
evaluation_file
.
with_suffix
(
"
.pdf
"
).
exists
()
keywords
=
{
r
"
^Setting --threshold=.*$
"
:
1
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment