Skip to content
Snippets Groups Projects
Commit f343d476 authored by Michael Langguth's avatar Michael Langguth
Browse files

Adoption to kchanges in keyboard-interaction.

parent bab252d4
No related branches found
No related tags found
No related merge requests found
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment