[AstroPy] reading table from string
Erik Bray
embray at stsci.edu
Mon Oct 28 14:22:42 EDT 2013
Indeed it does look like an issue has been opened about this:
https://github.com/astropy/astropy/issues/1692
As I suggested it's sort of the "intended" behavior, but that doesn't make it
right as it's obviously confusing in this case.
Erik
On 10/24/2013 11:34 PM, Semyeong Oh wrote:
> Hi,
>
> If I use 'names' keyword when reading a table from string,
> the first line is ignored.
>
> new="""
> 3102 0.32 <tel:3102%C2%A0%200.32> 4167 4085 Q1250+568-A
> 877 0.22 4378 3892 "Source 82"
> """
> t = ascii.read(new, names=['obsid','redshift','X','Y','object'])
> print t
>
>
> obsid redshift X Y object
> ----- -------- ---- ---- ---------
> 877 0.22 4378 3892 Source 82
>
>
> Is this a bug?
>
> Thanks,
> Semyeong
>
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
More information about the AstroPy
mailing list