Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
esde
machine-learning
MLAir
Commits
2cd7e32e
Commit
2cd7e32e
authored
2 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
fix some tests
parent
d80b5259
Branches
Branches containing commit
Tags
Tags containing commit
5 merge requests
!468
first implementation of toar-data-v2, can load data (but cannot process these...
,
!467
Resolve "release v2.2.0"
,
!455
update for reqs
,
!452
Lukas issue404 feat skip ols
,
!451
Resolve "Skip OLS on request"
Pipeline
#105710
passed
2 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mlair/run_modules/pre_processing.py
+3
-2
3 additions, 2 deletions
mlair/run_modules/pre_processing.py
test/test_run_modules/test_pre_processing.py
+3
-3
3 additions, 3 deletions
test/test_run_modules/test_pre_processing.py
with
6 additions
and
5 deletions
mlair/run_modules/pre_processing.py
+
3
−
2
View file @
2cd7e32e
...
@@ -380,8 +380,9 @@ class PreProcessing(RunEnvironment):
...
@@ -380,8 +380,9 @@ class PreProcessing(RunEnvironment):
data_collection
=
self
.
data_store
.
get
(
"
data_collection
"
,
subset
)
data_collection
=
self
.
data_store
.
get
(
"
data_collection
"
,
subset
)
stations
.
update
({
str
(
s
):
s
.
get_coordinates
()
for
s
in
data_collection
if
s
not
in
stations
})
stations
.
update
({
str
(
s
):
s
.
get_coordinates
()
for
s
in
data_collection
if
s
not
in
stations
})
CAMSforecast
(
"
CAMS
"
,
ref_store_path
=
path
,
data_path
=
data_path
).
make_reference_available_locally
(
stations
)
CAMSforecast
(
"
CAMS
"
,
ref_store_path
=
path
,
data_path
=
data_path
).
make_reference_available_locally
(
stations
)
else
:
logging
.
info
(
f
"
No preparation required for competitor
{
competitor_name
}
as no specific instruction
"
f
"
is provided.
"
)
else
:
else
:
logging
.
info
(
"
No preparation required because no competitor was provided to the workflow.
"
)
logging
.
info
(
"
No preparation required because no competitor was provided to the workflow.
"
)
...
...
This diff is collapsed.
Click to expand it.
test/test_run_modules/test_pre_processing.py
+
3
−
3
View file @
2cd7e32e
...
@@ -52,8 +52,8 @@ class TestPreProcessing:
...
@@ -52,8 +52,8 @@ class TestPreProcessing:
assert
caplog
.
record_tuples
[
-
4
]
==
(
'
root
'
,
20
,
"
use serial create_info_df (val)
"
)
assert
caplog
.
record_tuples
[
-
4
]
==
(
'
root
'
,
20
,
"
use serial create_info_df (val)
"
)
assert
caplog
.
record_tuples
[
-
3
]
==
(
'
root
'
,
20
,
"
use serial create_info_df (test)
"
)
assert
caplog
.
record_tuples
[
-
3
]
==
(
'
root
'
,
20
,
"
use serial create_info_df (test)
"
)
assert
caplog
.
record_tuples
[
-
2
]
==
(
'
root
'
,
20
,
"
Searching for competitors to be prepared for use.
"
)
assert
caplog
.
record_tuples
[
-
2
]
==
(
'
root
'
,
20
,
"
Searching for competitors to be prepared for use.
"
)
assert
caplog
.
record_tuples
[
-
1
]
==
(
'
root
'
,
20
,
"
No preparation required
because no
competitor
was provided
"
assert
caplog
.
record_tuples
[
-
1
]
==
(
'
root
'
,
20
,
"
No preparation required
for
competitor
ols as no specific
"
"
to the workflow
.
"
)
"
instruction is provided
.
"
)
RunEnvironment
().
__del__
()
RunEnvironment
().
__del__
()
def
test_run
(
self
,
obj_with_exp_setup
):
def
test_run
(
self
,
obj_with_exp_setup
):
...
@@ -71,7 +71,7 @@ class TestPreProcessing:
...
@@ -71,7 +71,7 @@ class TestPreProcessing:
"
extreme_values
"
,
"
extremes_on_right_tail_only
"
,
"
upsampling
"
]
"
extreme_values
"
,
"
extremes_on_right_tail_only
"
,
"
upsampling
"
]
assert
data_store
.
search_scope
(
"
general.train
"
)
==
sorted
(
expected_params
)
assert
data_store
.
search_scope
(
"
general.train
"
)
==
sorted
(
expected_params
)
assert
data_store
.
search_name
(
"
data_collection
"
)
==
sorted
([
"
general.train
"
,
"
general.val
"
,
"
general.test
"
,
assert
data_store
.
search_name
(
"
data_collection
"
)
==
sorted
([
"
general.train
"
,
"
general.val
"
,
"
general.test
"
,
"
general.train_val
"
])
"
general.train_val
"
])
def
test_create_set_split_not_all_stations
(
self
,
caplog
,
obj_with_exp_setup
):
def
test_create_set_split_not_all_stations
(
self
,
caplog
,
obj_with_exp_setup
):
caplog
.
set_level
(
logging
.
DEBUG
)
caplog
.
set_level
(
logging
.
DEBUG
)
...
...
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