[AstroPy] Enhanced CSV format file extension

Erik Bray embray at stsci.edu
Wed Jan 27 10:55:05 EST 2016


On 01/26/2016 10:48 PM, Aldcroft, Thomas wrote:
>
>
> On Tue, Jan 26, 2016 at 8:09 PM, Stephen Bailey <stephenbailey at lbl.gov
> <mailto:stephenbailey at lbl.gov>> wrote:
>
>     The code examples in APE6 use .ecsv, which seems good for distinguishing it
>     from plain .csv or who-knows-what .txt .
>
>
> Yes, .ecsv was informally settled on as the preferred extension.  It's a good
> idea to not use .csv since that extension is special to astropy and will default
> to using the "ascii.csv" reader.

That seems like it could be fixed though, right?  It wouldn't be too hard to 
detect likely ECSV by checking if there are comments, and then looking at just 
the first comment with the ECSV header.

I agree though better to use .ecsv to be explicit.

Erik

>
>     Stephen
>
>     On Tue, Jan 26, 2016 at 4:54 PM, David Kirkby <dkirkby at uci.edu
>     <mailto:dkirkby at uci.edu>> wrote:
>
>         Is there a recommended file extension to use with the ECSV format:
>
>         https://github.com/astropy/astropy-APEs/blob/master/APE6.rst
>
>         I see that astropy.io.registry does not auto-identify this format, but
>         it seems like .txt and .csv would both be reasonable choices.
>
>         David
>
>
>         _______________________________________________
>         AstroPy mailing list
>         AstroPy at scipy.org <mailto:AstroPy at scipy.org>
>         https://mail.scipy.org/mailman/listinfo/astropy
>
>
>
>     _______________________________________________
>     AstroPy mailing list
>     AstroPy at scipy.org <mailto:AstroPy at scipy.org>
>     https://mail.scipy.org/mailman/listinfo/astropy
>
>
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
>




More information about the AstroPy mailing list