Updated YAML config file parsing logic to account for changes in config file description.
This commit is contained in:
@ -75,12 +75,17 @@ def integrate_data_sources(yaml_config_file_path, log_dir='logs/'):
|
|||||||
for datetime_step in datetime_augment_dict.keys():
|
for datetime_step in datetime_augment_dict.keys():
|
||||||
select_file_keywords = select_file_keywords + datetime_augment_dict[datetime_step]
|
select_file_keywords = select_file_keywords + datetime_augment_dict[datetime_step]
|
||||||
|
|
||||||
min_datetime = min(datetime_augment_dict.keys())
|
config_dict['experiment_startdate'] = min(datetime_augment_dict.keys())
|
||||||
max_datetime = max(datetime_augment_dict.keys())
|
config_dict['experiment_enddate'] = max(datetime_augment_dict.keys())
|
||||||
date_str = min_datetime.strftime('%Y-%m-%d')+'_'+max_datetime.strftime('%Y-%m-%d')
|
startdate = config_dict['experiment_startdate']
|
||||||
|
enddate = config_dict['experiment_enddate']
|
||||||
|
|
||||||
|
date_str = f'{startdate}_{enddate}'
|
||||||
output_filename_path = create_hdf5_file(date_str, select_file_keywords)
|
output_filename_path = create_hdf5_file(date_str, select_file_keywords)
|
||||||
else:
|
else:
|
||||||
|
startdate = config_dict['experiment_startdate']
|
||||||
output_filename_path = create_hdf5_file(date_str = config_dict['experiment_date'], select_file_keywords = [])
|
enddate = config_dict['experiment_enddate']
|
||||||
|
date_str = f'{startdate}_{enddate}'
|
||||||
|
output_filename_path = create_hdf5_file(date_str, select_file_keywords = [])
|
||||||
|
|
||||||
return output_filename_path
|
return output_filename_path
|
Reference in New Issue
Block a user