Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't throw error if there is more than one log (more than one aspect interval) #244

Merged
merged 1 commit into from
Sep 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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