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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
MLAir
Commits
8ea88529
Commit
8ea88529
authored
3 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
cleanup, remove outdated validate_station_old method
parent
a2a6b331
Branches
Branches containing commit
Tags
Tags containing commit
5 merge requests
!319
add all changes of dev into release v1.4.0 branch
,
!318
Resolve "release v1.4.0"
,
!317
enabled window_lead_time=1
,
!295
Resolve "data handler FIR filter"
,
!259
Draft: Resolve "WRF-Datahandler should inherit from SingleStationDatahandler"
Pipeline
#72448
passed
3 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mlair/run_modules/pre_processing.py
+0
-32
0 additions, 32 deletions
mlair/run_modules/pre_processing.py
with
0 additions
and
32 deletions
mlair/run_modules/pre_processing.py
+
0
−
32
View file @
8ea88529
...
@@ -285,38 +285,6 @@ class PreProcessing(RunEnvironment):
...
@@ -285,38 +285,6 @@ class PreProcessing(RunEnvironment):
for
k
,
v
in
attrs
.
items
():
for
k
,
v
in
attrs
.
items
():
self
.
data_store
.
set
(
k
,
v
)
self
.
data_store
.
set
(
k
,
v
)
def
validate_station_old
(
self
,
data_handler
:
AbstractDataHandler
,
set_stations
,
set_name
=
None
,
store_processed_data
=
True
):
"""
Check if all given stations in `all_stations` are valid.
Valid means, that there is data available for the given time range (is included in `kwargs`). The shape and the
loading time are logged in debug mode.
:return: Corrected list containing only valid station IDs.
"""
t_outer
=
TimeTracking
()
logging
.
info
(
f
"
check valid stations started
{
'
(%s)
'
%
(
set_name
if
set_name
is
not
None
else
'
all
'
)
}
"
)
# calculate transformation using train data
if
set_name
==
"
train
"
:
logging
.
info
(
"
setup transformation using train data exclusively
"
)
self
.
transformation
(
data_handler
,
set_stations
)
# start station check
collection
=
DataCollection
()
valid_stations
=
[]
kwargs
=
self
.
data_store
.
create_args_dict
(
data_handler
.
requirements
(),
scope
=
set_name
)
for
station
in
set_stations
:
try
:
dp
=
data_handler
.
build
(
station
,
name_affix
=
set_name
,
store_processed_data
=
store_processed_data
,
**
kwargs
)
collection
.
add
(
dp
)
valid_stations
.
append
(
station
)
except
(
AttributeError
,
EmptyQueryResult
):
continue
logging
.
info
(
f
"
run for
{
t_outer
}
to check
{
len
(
set_stations
)
}
station(s). Found
{
len
(
collection
)
}
/
"
f
"
{
len
(
set_stations
)
}
valid stations.
"
)
return
collection
,
valid_stations
def
transformation
(
self
,
data_handler
:
AbstractDataHandler
,
stations
):
def
transformation
(
self
,
data_handler
:
AbstractDataHandler
,
stations
):
if
hasattr
(
data_handler
,
"
transformation
"
):
if
hasattr
(
data_handler
,
"
transformation
"
):
kwargs
=
self
.
data_store
.
create_args_dict
(
data_handler
.
requirements
(),
scope
=
"
train
"
)
kwargs
=
self
.
data_store
.
create_args_dict
(
data_handler
.
requirements
(),
scope
=
"
train
"
)
...
...
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