Loading noche/noche.py +3 −2 Original line number Diff line number Diff line Loading @@ -601,6 +601,8 @@ class Noche: # Fix position of BSCALE and BZERO bscale_card = noche_hdu.header.cards['BSCALE'] bscale = int(bscale_card[1]) # force integer bscale_card = (bscale_card[0], bscale, bscale_card[2]) bzero_card = noche_hdu.header.cards['BZERO'] noche_hdu.header.pop('BSCALE') noche_hdu.header.pop('BZERO') Loading @@ -621,8 +623,7 @@ class Noche: log.info(f"Saving as ./{filename}") hdul.writeto(filename, overwrite=overwrite, checksum=True) hdul.writeto(filename, overwrite=overwrite, checksum=True) @staticmethod Loading Loading
noche/noche.py +3 −2 Original line number Diff line number Diff line Loading @@ -601,6 +601,8 @@ class Noche: # Fix position of BSCALE and BZERO bscale_card = noche_hdu.header.cards['BSCALE'] bscale = int(bscale_card[1]) # force integer bscale_card = (bscale_card[0], bscale, bscale_card[2]) bzero_card = noche_hdu.header.cards['BZERO'] noche_hdu.header.pop('BSCALE') noche_hdu.header.pop('BZERO') Loading @@ -621,8 +623,7 @@ class Noche: log.info(f"Saving as ./{filename}") hdul.writeto(filename, overwrite=overwrite, checksum=True) hdul.writeto(filename, overwrite=overwrite, checksum=True) @staticmethod Loading