@@ -266,14 +266,18 @@ def main(
266266 h1_file_lists , h2_file_lists = _get_file_lists (
267267 input_dir , (h1_time_slices , h2_time_slices ), logger
268268 )
269- history_yr_range_h1 = _get_history_yr_range (first_season , last_season , "annual" )
270- history_yr_range_h2 = _get_history_yr_range (first_season , last_season , "daily" )
269+ history_yr_range_h1 = _get_history_yr_range (first_season , last_season , H_FREQ_DICT [ 1 ] )
270+ history_yr_range_h2 = _get_history_yr_range (first_season , last_season , H_FREQ_DICT [ 2 ] )
271271 # Check
272272 assert len (history_yr_range_h1 ) == len (history_yr_range_h2 )
273273 log (logger , "Checking h1 files" )
274- gddfn .check_file_lists (history_yr_range_h1 , h1_file_lists , h1_time_slices , "annual" , logger )
274+ gddfn .check_file_lists (
275+ history_yr_range_h1 , h1_file_lists , h1_time_slices , H_FREQ_DICT [1 ], logger
276+ )
275277 log (logger , "Checking h2 files" )
276- gddfn .check_file_lists (history_yr_range_h2 , h2_file_lists , h2_time_slices , "daily" , logger )
278+ gddfn .check_file_lists (
279+ history_yr_range_h2 , h2_file_lists , h2_time_slices , H_FREQ_DICT [2 ], logger
280+ )
277281 log (logger , "Done" )
278282
279283 for y , history_yr_h1 in enumerate (history_yr_range_h1 ):
0 commit comments