aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
Diffstat (limited to 'astro')
-rwxr-xr-xastro/fits/fitscube.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/astro/fits/fitscube.py b/astro/fits/fitscube.py
index f9a96e1..8effc75 100755
--- a/astro/fits/fitscube.py
+++ b/astro/fits/fitscube.py
@@ -68,7 +68,10 @@ class FITSCube:
def write(self, outfile, clobber):
hdu = fits.PrimaryHDU(data=self.data, header=self.header)
- hdu.writeto(outfile, clobber=clobber)
+ try:
+ hdu.writeto(outfile, overwrite=clobber)
+ except TypeError:
+ hdu.writeto(outfile, clobber=clobber)
@property
def width(self):