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
d606f37e
Commit
d606f37e
authored
1 year ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Remove tests for ptbench compare for now
parent
cc0b6c3b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Making use of LightningDataModule and simplification of data loading
Pipeline
#77537
passed
1 year ago
Stage: qa
Stage: test
Stage: doc
Stage: dist
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_cli.py
+0
-51
0 additions, 51 deletions
tests/test_cli.py
with
0 additions
and
51 deletions
tests/test_cli.py
+
0
−
51
View file @
d606f37e
...
@@ -154,12 +154,6 @@ def test_evaluate_help():
...
@@ -154,12 +154,6 @@ def test_evaluate_help():
_check_help
(
evaluate
)
_check_help
(
evaluate
)
def
test_compare_help
():
from
ptbench.scripts.compare
import
compare
_check_help
(
compare
)
@pytest.mark.skip
(
reason
=
"
Test need to be updated
"
)
@pytest.mark.skip
(
reason
=
"
Test need to be updated
"
)
@pytest.mark.skip_if_rc_var_not_set
(
"
datadir.montgomery
"
)
@pytest.mark.skip_if_rc_var_not_set
(
"
datadir.montgomery
"
)
def
test_train_pasa_montgomery
(
temporary_basedir
):
def
test_train_pasa_montgomery
(
temporary_basedir
):
...
@@ -410,51 +404,6 @@ def test_evaluate_pasa_montgomery(temporary_basedir):
...
@@ -410,51 +404,6 @@ def test_evaluate_pasa_montgomery(temporary_basedir):
)
)
@pytest.mark.skip
(
reason
=
"
Test need to be updated
"
)
@pytest.mark.skip_if_rc_var_not_set
(
"
datadir.montgomery
"
)
def
test_compare_pasa_montgomery
(
temporary_basedir
):
from
ptbench.scripts.compare
import
compare
runner
=
CliRunner
()
with
stdout_logging
()
as
buf
:
predictions_folder
=
str
(
temporary_basedir
/
"
predictions
"
)
output_folder
=
str
(
temporary_basedir
/
"
comparisons
"
)
result
=
runner
.
invoke
(
compare
,
[
"
-vv
"
,
"
train
"
,
f
"
{
predictions_folder
}
/train/predictions.csv
"
,
"
test
"
,
f
"
{
predictions_folder
}
/test/predictions.csv
"
,
f
"
--output-figure=
{
output_folder
}
/compare.pdf
"
,
f
"
--output-table=
{
output_folder
}
/table.txt
"
,
"
--threshold=0.5
"
,
],
)
_assert_exit_0
(
result
)
# check comparisons are there
assert
os
.
path
.
exists
(
os
.
path
.
join
(
output_folder
,
"
compare.pdf
"
))
assert
os
.
path
.
exists
(
os
.
path
.
join
(
output_folder
,
"
table.txt
"
))
keywords
=
{
r
"
^Dataset
'
\*
'
: threshold =.*$
"
:
1
,
r
"
^Loading predictions from.*$
"
:
2
,
r
"
^Tabulating performance summary...
"
:
1
,
}
buf
.
seek
(
0
)
logging_output
=
buf
.
read
()
for
k
,
v
in
keywords
.
items
():
assert
_str_counter
(
k
,
logging_output
)
==
v
,
(
f
"
Count for string
'
{
k
}
'
appeared
"
f
"
(
{
_str_counter
(
k
,
logging_output
)
}
)
"
f
"
instead of the expected
{
v
}
:
\n
Output:
\n
{
logging_output
}
"
)
@pytest.mark.skip
(
reason
=
"
Test need to be updated
"
)
@pytest.mark.skip
(
reason
=
"
Test need to be updated
"
)
@pytest.mark.skip_if_rc_var_not_set
(
"
datadir.montgomery
"
)
@pytest.mark.skip_if_rc_var_not_set
(
"
datadir.montgomery
"
)
def
test_train_mlp_montgomery_rs
(
temporary_basedir
,
datadir
):
def
test_train_mlp_montgomery_rs
(
temporary_basedir
,
datadir
):
...
...
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