Skip Menu |

This queue is for tickets about the Astro-FITS-Header CPAN distribution.

Report information
The Basics
Id: 1788
Status: resolved
Priority: 0/
Queue: Astro-FITS-Header

People
Owner: Nobody in particular
Requestors: djerius [...] cfa.harvard.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: A::F::H::CFITSIO::configure/write_hdr always close fitsID
configure and write_hdr close the passed FITS file when it is passed in as a fitsID. I'm not sure if this is a feature or a bug. (If the latter I'll be glad to offer a patch). My application works on multiple headers in an already opened FITS file. It accepts both a file name and a handle to an opened file; it can't reopen the file when given the latter. Thanks, Diab
I'm attaching a patch which does the following: - Adds a ReadOnly option to A::F::H::C::configure - fixes configure & write_hdr to close the file only if it opens it - upgrades the source to use Astro::FITS::CFITSIO
Download patch-Astro-FITS-Header-2.2
application/octet-stream 8.2k

Message body not shown because it is not plain text.

Show quoted text
> I'm attaching a patch which does the following: > > - Adds a ReadOnly option to A::F::H::C::configure > - fixes configure & write_hdr to close the file only if it opens it > - upgrades the source to use Astro::FITS::CFITSIO
Patch has been applied and will be released as part of the version 2.4, which also includes FITS header support for GSD files, within the next couple of days. Alasdair.