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
b95c65fe
Commit
b95c65fe
authored
3 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
ensure that file is removed and also that data origin parameter is not mutable
parent
5bc89f88
Branches
Branches containing commit
Tags
Tags containing commit
6 merge requests
!430
update recent developments
,
!413
update release branch
,
!412
Resolve "release v2.0.0"
,
!374
Lukas issue339 feat filter with future mix
,
!373
try out bugfix
,
!372
Draft: Resolve "BUG: wrong time extend when using lazy preprocessing"
Pipeline
#86292
passed
3 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mlair/data_handler/data_handler_single_station.py
+1
-0
1 addition, 0 deletions
mlair/data_handler/data_handler_single_station.py
mlair/helpers/join.py
+3
-0
3 additions, 0 deletions
mlair/helpers/join.py
with
4 additions
and
0 deletions
mlair/data_handler/data_handler_single_station.py
+
1
−
0
View file @
b95c65fe
...
@@ -276,6 +276,7 @@ class DataHandlerSingleStation(AbstractDataHandler):
...
@@ -276,6 +276,7 @@ class DataHandlerSingleStation(AbstractDataHandler):
filename
=
os
.
path
.
join
(
self
.
lazy_path
,
hash
+
"
.pickle
"
)
filename
=
os
.
path
.
join
(
self
.
lazy_path
,
hash
+
"
.pickle
"
)
try
:
try
:
if
self
.
overwrite_lazy_data
is
True
:
if
self
.
overwrite_lazy_data
is
True
:
os
.
remove
(
filename
)
raise
FileNotFoundError
raise
FileNotFoundError
with
open
(
filename
,
"
rb
"
)
as
pickle_file
:
with
open
(
filename
,
"
rb
"
)
as
pickle_file
:
lazy_data
=
dill
.
load
(
pickle_file
)
lazy_data
=
dill
.
load
(
pickle_file
)
...
...
This diff is collapsed.
Click to expand it.
mlair/helpers/join.py
+
3
−
0
View file @
b95c65fe
...
@@ -43,6 +43,9 @@ def download_join(station_name: Union[str, List[str]], stat_var: dict, station_t
...
@@ -43,6 +43,9 @@ def download_join(station_name: Union[str, List[str]], stat_var: dict, station_t
# make sure station_name parameter is a list
# make sure station_name parameter is a list
station_name
=
helpers
.
to_list
(
station_name
)
station_name
=
helpers
.
to_list
(
station_name
)
# also ensure that given data_origin dict is no reference
data_origin
=
None
if
data_origin
is
None
else
{
k
:
v
for
(
k
,
v
)
in
data_origin
.
items
()}
# get data connection settings
# get data connection settings
join_url_base
,
headers
=
join_settings
(
sampling
)
join_url_base
,
headers
=
join_settings
(
sampling
)
...
...
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