Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
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
AMBS
Commits
f343d476
Commit
f343d476
authored
4 years ago
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Adoption to kchanges in keyboard-interaction.
parent
bab252d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_tools/config_runscripts/config_extraction.py
+2
-2
2 additions, 2 deletions
...o_prediction_tools/config_runscripts/config_extraction.py
with
2 additions
and
2 deletions
video_prediction_tools/config_runscripts/config_extraction.py
+
2
−
2
View file @
f343d476
...
@@ -36,13 +36,13 @@ class Config_Extraction(Config_runscript_base):
...
@@ -36,13 +36,13 @@ class Config_Extraction(Config_runscript_base):
:return: all attributes of class Data_Extraction are set
:return: all attributes of class Data_Extraction are set
"""
"""
dataset_req_str
=
"
Enter the path where the original ERA5 netCDF-files are located:
\n
"
dataset_req_str
=
"
Enter the path where the original ERA5 netCDF-files are located:
"
dataset_err
=
FileNotFoundError
(
"
Cannot retrieve input data from passed path.
"
)
dataset_err
=
FileNotFoundError
(
"
Cannot retrieve input data from passed path.
"
)
self
.
source_dir
=
Config_Extraction
.
keyboard_interaction
(
dataset_req_str
,
Config_Extraction
.
check_data_indir
,
self
.
source_dir
=
Config_Extraction
.
keyboard_interaction
(
dataset_req_str
,
Config_Extraction
.
check_data_indir
,
dataset_err
,
ntries
=
3
)
dataset_err
,
ntries
=
3
)
year_req_str
=
"
Enter the year for which data extraction should be performed:
\n
"
year_req_str
=
"
Enter the year for which data extraction should be performed:
"
year_err
=
ValueError
(
"
Please type in a year (after 1970) in YYYY-format.
"
)
year_err
=
ValueError
(
"
Please type in a year (after 1970) in YYYY-format.
"
)
self
.
year
=
Config_Extraction
.
keyboard_interaction
(
year_req_str
,
Config_Extraction
.
check_year
,
self
.
year
=
Config_Extraction
.
keyboard_interaction
(
year_req_str
,
Config_Extraction
.
check_year
,
...
...
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