Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units not shown in AstropyTable visualisation #89

Open
juliaroquette opened this issue Jan 30, 2024 · 2 comments
Open

Units not shown in AstropyTable visualisation #89

juliaroquette opened this issue Jan 30, 2024 · 2 comments
Assignees

Comments

@juliaroquette
Copy link

  • Astropy Tables and Units
  • data exportation

Hello,

The oda_api.data_products.ODAAstropyTable allows me to output the content of astropy Tables, which is great since in principle one could generate tables where the columns are tie to their physical units. However, I noticed these units get lost somewhere in the back_end, and not only the table that can be visualized in the front end misses the units, but the default exportation file is on ecsv format - which is a prior unitless as well.

Screenshot 2024-01-30 at 17 25 18
@volodymyrss
Copy link
Member

Thanks @juliaroquette for the report!

@dsavchenko could you please have a look?

@dsavchenko
Copy link
Member

The ecsv there preserves units. You can see it in the "header" of the file if you download it.
So this is only a table visualisation issue.

It requires some effort to fix because the table is constructed using astropy's html writer, and it doesn't have an option to output units.

@dsavchenko dsavchenko changed the title exported astropy Tables have units suppressed by default ecsv format Units not shown in AstropyTable visualisation Feb 20, 2024
@dsavchenko dsavchenko transferred this issue from oda-hub/hugo-odahub Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants