Skip to content
Snippets Groups Projects
Commit bc3e1317 authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski
Browse files

Fix incorrect column name

parent fe49b401
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ def create_combined_skymap(se_id, ext_id):
|
group(
gracedb.upload.s('combined-ext.multiorder.fits', se_id,
message, ['sky_loc', 'public']),
message, ['sky_loc', 'ext_coinc', 'public']),
skymaps.plot_allsky.s()
|
......@@ -96,14 +96,14 @@ def combine_skymaps(skymapfilesbytes):
then returns the contents of the file as a byte array.
"""
skymap1filebytes, skymap2filebytes = skymapfilesbytes
with NamedTemporaryFile(mode='rb', suffix='.fits.gz') as combinedskymap, \
with NamedTemporaryFile(mode='rb', suffix='.fits') as combinedskymap, \
NamedTemporaryFile(content=skymap1filebytes) as skymap1file, \
NamedTemporaryFile(content=skymap2filebytes) as skymap2file, \
handling_system_exit():
sky1 = HealpixMap.read_map(skymap1file.name, density=True)
sky2 = HealpixMap.read_map(skymap2file.name, density=False)
comb_sky = sky1 * sky2
comb_sky.write_map(combinedskymap.name)
comb_sky.write_map(combinedskymap.name, column_names='PROBDENSITY')
return combinedskymap.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment