[AstroPy] Unified file read method without opening file?

Thomas Robitaille thomas.robitaille at gmail.com
Thu Dec 19 11:03:41 EST 2013

Hi Duncan,

You should be able to pass an open h5py file object to Table.read and
Table.write. Does it not work for you?


On 13 December 2013 07:05, Duncan Macleod <duncan.macleod at ligo.org> wrote:
> Hi all,
> I’m a big fan of the astropy unified file read/write interface, and have
> used it in a project for reading gravitational-wave data. Is there a way to
> not have the astropy.io.registry.read method open all file paths if
> format=None, the lower-level methods that then get called take in filepaths
> themselves, not open files (e.g. h5py.File) and I don’t want to then have
> two open copies of the same file?
> Thanks
> Duncan
> --
> Duncan Macleod
> duncan.macleod at ligo.org
> LIGO Data Grid systems development
> Louisiana State University
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy

More information about the AstroPy mailing list