Error while writing skymaps with version 0.5.2
% bayestar-localize-coincs --f-low 20 coinc-1272790100.1640625-hfixfk.xml.gz coinc-1272790100.1640625-hfixfk.xml.gz
2021-04-06 13:13:40,823 INFO Using 8 OpenMP thread(s)
2021-04-06 13:13:40,823 INFO coinc-1272790100.1640625-hfixfk.xml.gz,coinc-1272790100.1640625-hfixfk.xml.gz:reading input files
2021-04-06 13:13:40,946 WARNING Time slide record is missing for 0, guessing that this is zero-lag
2021-04-06 13:13:40,946 INFO 0:computing sky map
2021-04-06 13:13:41,042 WARNING Truncating PSD at 0.95 of maximum frequency to suppress rolloff artifacts. This option may be removed in the future.
2021-04-06 13:13:41,043 WARNING Truncating PSD at 0.95 of maximum frequency to suppress rolloff artifacts. This option may be removed in the future.
2021-04-06 13:13:41,044 WARNING Truncating PSD at 0.95 of maximum frequency to suppress rolloff artifacts. This option may be removed in the future.
2021-04-06 13:13:41,045 WARNING Template is unspecified; using ER10/O2 uberbank criterion
2021-04-06 13:13:41,045 INFO Selected template: SEOBNRv4_ROM
2021-04-06 13:13:41,231 WARNING Assuming PSD is infinite at 0.015625 Hz because PSD is only sampled down to 18 Hz
2021-04-06 13:13:41,231 WARNING Assuming PSD is infinite at 4095.98 Hz because PSD is only sampled up to 972.75 Hz
2021-04-06 13:13:41,237 WARNING Assuming PSD is infinite at 0.015625 Hz because PSD is only sampled down to 18 Hz
2021-04-06 13:13:41,237 WARNING Assuming PSD is infinite at 4095.98 Hz because PSD is only sampled up to 972.75 Hz
2021-04-06 13:13:41,243 WARNING Assuming PSD is infinite at 0.015625 Hz because PSD is only sampled down to 18 Hz
2021-04-06 13:13:41,243 WARNING Assuming PSD is infinite at 4095.98 Hz because PSD is only sampled up to 972.75 Hz
2021-04-06 13:13:55,109 INFO finished computationally-intensive section in real=14.163s, user=100.320s, sys=0.444s
2021-04-06 13:13:55,109 INFO 0:saving sky map
Traceback (most recent call last):
File "/Users/tito/anaconda3/bin/bayestar-localize-coincs", line 8, in <module>
sys.exit(main())
File "/Users/tito/anaconda3/lib/python3.7/site-packages/ligo/skymap/tool/bayestar_localize_coincs.py", line 187, in main
os.path.join(opts.output, filename), sky_map, nest=True)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/ligo/skymap/io/fits.py", line 384, in write_sky_map
hdulist.writeto(filename, overwrite=True)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/utils/decorators.py", line 535, in wrapper
return function(*args, **kwargs)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 919, in writeto
self.verify(option=output_verify)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/verify.py", line 73, in verify
errs = self._verify(opt)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 1245, in _verify
result = hdu._verify(option)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/hdu/table.py", line 535, in _verify
errs = super()._verify(option=option)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/hdu/base.py", line 1587, in _verify
errs = super()._verify(option=option)
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/hdu/base.py", line 1074, in _verify
errs.append(card._verify(option))
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/card.py", line 1118, in _verify
keyword, valuecomment = self._split()
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/card.py", line 815, in _split
for card in self._itersubcards():
File "/Users/tito/anaconda3/lib/python3.7/site-packages/astropy/io/fits/card.py", line 1171, in _itersubcards
'Long card images must have CONTINUE cards after '
astropy.io.fits.verify.VerifyError: Long card images must have CONTINUE cards after the first card.
I am using Python 3.7.7, astropy 4.2.1, ligo-skymap 0.5.2 and numpy 1.20.2. The same command completes successfully with astropy 4.2, ligo.skymap 0.5.0 and numpy 1.19.2.
First reported by Alex Nitz.