From 587533265a46a9ff4d6a01d9180ce2e9382c8b3b Mon Sep 17 00:00:00 2001 From: Jean Connelly Date: Mon, 28 Sep 2020 09:05:58 -0400 Subject: [PATCH] Allow multiple per-ai logs --- mica/archive/asp_l1_proc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mica/archive/asp_l1_proc.py b/mica/archive/asp_l1_proc.py index c3d74c9d..3067f2c2 100644 --- a/mica/archive/asp_l1_proc.py +++ b/mica/archive/asp_l1_proc.py @@ -57,10 +57,10 @@ def update(obsids, config=None): procdir = os.path.dirname(sol) # As of DS 10.8.3, there are both "com" logs and per-ai logs. - # This glob should get the per-ai logs. We only want one - # of them to get an obspar_version. + # This glob should get the per-ai logs. We use the first one + # to get an obspar version. logfiles = get_globfiles(os.path.join(procdir, "asp_l1_f*log*"), - minfiles=1, maxfiles=1) + minfiles=1, maxfiles=None) aspect_log = gzip.open(logfiles[0], 'rt').read() # read the obspar version with a regex from the log