Skip to content

Commit

Permalink
Per #2834, sort list of fluxnet csv files returned from glob to produ…
Browse files Browse the repository at this point in the history
…ce consistent results
  • Loading branch information
georgemccabe committed Dec 16, 2024
1 parent 27e5e98 commit e34eb09
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def get_season_start_end(s,refdate):
sys.exit(1)
else:
fn_file_list = glob.glob(os.path.join(fndir,FILENAME_PATTERN))
fn_file_list.sort()
fn_stations = [os.path.basename(x).split('_')[1] for x in fn_file_list]
if fn_stations == []:
print("ERROR! NO FLUXNET DATA FOUND MATCHING FILE PATTERN "+FILENAME_PATTERN)
Expand Down

0 comments on commit e34eb09

Please sign in to comment.