[AstroPy] Re: functional interface for PyFITS?

Nor npirzkal at eso.org
Tue Mar 22 10:59:40 CST 2005

Default should be to check if foo.fits[2] is a valid filename, read it 
if it is, otherwise read the second extension of foo.fits.

On Mar 22, 2005, at 9:30 AM, Joe Harrington wrote:

> Be careful here.  How do you distinguish that from a file whose name
> is literally foo.fits[2]?  And if you do 'foo.fits'[2], how do you
> distinguish that from the second element of a string array (bar, in
> this case): getdata(bar[2])

More information about the AstroPy mailing list