Skip to content

Commit

Permalink
Merge pull request #244 from sot/multi_ai_logs
Browse files Browse the repository at this point in the history
Don't throw error if there is more than one log (more than one aspect interval)
  • Loading branch information
jeanconn authored Sep 29, 2020
2 parents 6ece612 + 5875332 commit 750d452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mica/archive/asp_l1_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 750d452

Please sign in to comment.