From 27492e720755ccd4e5ca96eddf8e36b9dba6d5ab Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 8 Jun 2023 11:16:31 -0500 Subject: [PATCH] snapshot... --- modules/aeolus/datasource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aeolus/datasource.py b/modules/aeolus/datasource.py index f6182625..c2c027a5 100644 --- a/modules/aeolus/datasource.py +++ b/modules/aeolus/datasource.py @@ -78,12 +78,12 @@ def get_parameters_fmwk_amvs(filename='/ships19/cloud/scratch/4TH_AMV_INTERCOMPA class Files: def __init__(self, files_path, file_time_span, pattern): + self.flist = [] if os.path.isdir(files_path): - self.flist = [] for path in Path(files_path).rglob(pattern): self.flist.append(path) else: - self.flist = glob.glob(files_path + pattern) + self.flist.append(files_path) if len(self.flist) == 0: raise GenericException('no matching files found in: ' + files_path + pattern) -- GitLab