Skip to content

Commit

Permalink
Pass filename through to fix_header call in translate_header
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Oct 30, 2020
1 parent b086849 commit b27556a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/astro_metadata_translator/bin/translateheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def read_file(file, hdrnum, print_trace,
if output_mode in ("yaml", "fixed"):

if output_mode == "fixed":
fix_header(md)
fix_header(md, filename=file)

# The header should be written out in the insertion order
print(yaml.dump(md, sort_keys=False), file=outstream)
Expand Down

0 comments on commit b27556a

Please sign in to comment.