Commit ff0a3dd7 authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Output of skymap-flatten should be gzip'ed if filename ends in .gz

parent 36f2ff3d
......@@ -5,7 +5,8 @@ Changelog
0.0.19 (unreleased)
===================
- No changes yet.
- Fix a bug that prevented the output of ligo-skymap-flatten from being
gzip-compressed if the output filename ended in .gz.
0.0.18 (2018-11-19)
===================
......
......@@ -45,4 +45,4 @@ def main(args=None):
msg = 'Expected the FITS file {} to have ordering {}, but it is {}'
warnings.warn(msg.format(args.input.name, expected_ordering, ordering))
table = read_sky_map(hdus, moc=True)
write_sky_map(args.output, rasterize(table), nest=True)
write_sky_map(args.output.name, rasterize(table), nest=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment