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
2491690c
Commit
2491690c
authored
1 year ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[tests.conftest] Prepare helpers for multi-class database support
parent
3c3acfd8
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/conftest.py
+8
-4
8 additions, 4 deletions
tests/conftest.py
with
8 additions
and
4 deletions
tests/conftest.py
+
8
−
4
View file @
2491690c
...
...
@@ -162,10 +162,14 @@ class DatabaseCheckers:
assert
len
(
split
[
k
])
==
lengths
[
k
]
for
s
in
split
[
k
]:
assert
any
(
[
s
[
0
].
startswith
(
k
)
for
k
in
prefixes
]
),
f
"
Sample with name
{
s
[
0
]
}
does not start with any of the prefixes in
{
prefixes
}
"
assert
s
[
1
]
in
possible_labels
assert
any
([
s
[
0
].
startswith
(
k
)
for
k
in
prefixes
]),
(
f
"
Sample with name
{
s
[
0
]
}
does not start with any of the
"
f
"
prefixes in
{
prefixes
}
"
)
if
isinstance
(
s
[
1
],
list
):
assert
all
([
k
in
possible_labels
for
k
in
s
[
1
]])
else
:
assert
s
[
1
]
in
possible_labels
@staticmethod
def
check_loaded_batch
(
...
...
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