From 725455c1d4caa8cb60dfd53fe8a8b7ddeb6c6146 Mon Sep 17 00:00:00 2001 From: "M. Emre Aydin" Date: Thu, 6 Nov 2014 15:41:45 +0200 Subject: [PATCH] PyFITS method change adaptation changed header.update to header.set following A. Bukva's tip. (thanks!) --- cr2fits.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cr2fits.py b/cr2fits.py index 5465d49..9cbc9fb 100755 --- a/cr2fits.py +++ b/cr2fits.py @@ -342,14 +342,14 @@ def __str__(self): try : #Creating the FITS File hdu = pyfits.PrimaryHDU(im_green) - hdu.header.update('OBSTIME',date) - hdu.header.update('EXPTIME',shutter) - hdu.header.update('APERTUR',aperture) - hdu.header.update('ISO',iso) - hdu.header.update('FOCAL',focal) - hdu.header.update('ORIGIN',original_file) - hdu.header.update('FILTER',colors[colorInput]) - hdu.header.update('CAMERA',camera) + hdu.header.set('OBSTIME',date) + hdu.header.set('EXPTIME',shutter) + hdu.header.set('APERTUR',aperture) + hdu.header.set('ISO',iso) + hdu.header.set('FOCAL',focal) + hdu.header.set('ORIGIN',original_file) + hdu.header.set('FILTER',colors[colorInput]) + hdu.header.set('CAMERA',camera) hdu.header.add_comment('FITS File Created with cr2fits.py available at %s'%(sourceweb)) hdu.header.add_comment('cr2fits.py version %s'%(version)) hdu.header.add_comment('EXPTIME is in seconds.')