[AstroPy] Bug in Table.view_in_browser(jsviewer=True) ?

Joseph Booker joe at neoturbine.net
Tue Aug 11 11:07:03 EDT 2015


Just as a heads up, I implemented this in
https://github.com/astropy/astropy/pull/4052 (I've had to do something
similar so DataTables would sort numbers in scientific notation).

On Wed, Aug 5, 2015 at 12:23 PM, Erik Bray <embray at stsci.edu> wrote:

> On 08/05/2015 12:16 PM, Leonard Burtscher wrote:
> > Thanks, Adam and Erik, for your quick answers and sorry for not checking
> the
> > bugtracker before. I won't get to this within the next week or so, but
> then I
> > might try to fix it.
>
> Much appreciated if you're able!
>
> Thanks,
> Erik
>
> >> Am 05.08.2015 um 17:06 schrieb Erik Bray <embray at stsci.edu>:
> >>
> >> On 08/05/2015 10:48 AM, Adam Ginsburg wrote:
> >>> Hi Leonard, This is something that can be solved within astropy.  There
> >>> is an open issue that will probably solve this:
> >>> https://github.com/astropy/astropy/issues/2966 in case you want to
> try to
> >>> tackle it based on Tom Robitaille's example.
> >>
> >> Indeed, some of the columns you'll notice do sort correctly numerically,
> >> like the "z" column in your table.  It's just when columns contain
> >> non-numbers like NaN.
> >>
> >> Looks like a reasonably easy pull request since Tom already showed how
> to
> >> approach it (just need to add a custom sort method to dataTable in the
> >> javascript), if anyone has been looking for a contribution to make to
> >> Astropy...
> >>
> >> Erik
> >>
> >>> On Wed, Aug 5, 2015 at 4:31 PM, Leonard Burtscher <
> burtscher at mpe.mpg.de>
> >>> wrote:
> >>>> Hi,
> >>>>
> >>>> The "show_in_browser" feature for Table is really great, especially
> >>>> when combined with jsviewer=True, e.g.
> >>>>
> >>>> http://www.mpe.mpg.de/~burtscher/APEX/table.html
> >>>>
> >>>> By clicking on the header row, one can sort by that column. However,
> >>>> numbers are not sorted correctly, with "9" being before "10" etc.
> (e.g.
> >>>> click on one of the "exptime" columns and look at the bottom of the
> >>>> table).
> >>>>
> >>>> Is that something that could be solved within astropy or is it a
> >>>> Javascript issue?
> >>>>
> >>>> -- Leo
> >>>>
> >>>> _______________________________________________ AstroPy mailing list
> >>>> AstroPy at scipy.org http://mail.scipy.org/mailman/listinfo/astropy
> >>>
> >>>
> >>>
> >>
> >> _______________________________________________ AstroPy mailing list
> >> AstroPy at scipy.org http://mail.scipy.org/mailman/listinfo/astropy
> >
> > _______________________________________________ AstroPy mailing list
> > AstroPy at scipy.org http://mail.scipy.org/mailman/listinfo/astropy
> >
>
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20150811/6d2da935/attachment.html>


More information about the AstroPy mailing list