From f343d476124fee150742d7bcc085e17acfcf3ea4 Mon Sep 17 00:00:00 2001 From: Michael <m.langguth@fz-juelich.de> Date: Wed, 10 Feb 2021 12:22:22 +0100 Subject: [PATCH] Adoption to kchanges in keyboard-interaction. --- video_prediction_tools/config_runscripts/config_extraction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video_prediction_tools/config_runscripts/config_extraction.py b/video_prediction_tools/config_runscripts/config_extraction.py index 0ae1eebe..d81167fd 100644 --- a/video_prediction_tools/config_runscripts/config_extraction.py +++ b/video_prediction_tools/config_runscripts/config_extraction.py @@ -36,13 +36,13 @@ class Config_Extraction(Config_runscript_base): :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.") self.source_dir = Config_Extraction.keyboard_interaction(dataset_req_str, Config_Extraction.check_data_indir, 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.") self.year = Config_Extraction.keyboard_interaction(year_req_str, Config_Extraction.check_year, -- GitLab