Skip to content

Commit

Permalink
Merge pull request #932 from kglotfelty/fine_astro_fix_gzip
Browse files Browse the repository at this point in the history
fine_astro: look for .gz aux files when copying
  • Loading branch information
DougBurke authored Dec 2, 2024
2 parents 67d6fd0 + 4a37774 commit 155d62e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/fine_astro
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ def copy_auxfiles(obsid, out_dirs):

for aux in aux_list:
aux_file = obsid.get_ancillary(aux)
if not os.path.exists(aux_file):
aux_file += ".gz"
if not os.path.exists(aux_file):
aux_file.removesuffix(".gz")
raise IOError(f"Cannot locate auxiliary file: {aux_file}")
fname = os.path.basename(aux_file)
shutil.copyfile(aux_file,
os.path.join(out_dirs.root_dir,
Expand Down

0 comments on commit 155d62e

Please sign in to comment.