Skip to content

Conversation

russss
Copy link
Contributor

@russss russss commented Apr 13, 2018

Add support for specifying units for a column in metadata.json and rendering them on display using pint.

Example table metadata:

                "license_frequency": {
                    "units": {
                        "frequency": "Hz",
                        "channel_width": "Hz",
                        "height": "m",
                        "antenna_height": "m",
                        "azimuth": "degrees"
                    }
                }

Example result

This works surprisingly well! I'd like to add support for using units when querying but this is PR is pretty usable as-is.

(Pint doesn't seem to support decibels though - it thinks they're decibytes - which is an annoying omission.)

(ref ticket #203)

Add support for specifying units for a column in metadata.json and
rendering them on display using
[pint](https://pint.readthedocs.io/en/latest/).

ref simonw#203
@simonw simonw merged commit ec6abc8 into simonw:master Apr 14, 2018
@simonw simonw mentioned this pull request Apr 14, 2018
@russss russss deleted the units branch April 14, 2018 09:44
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

Successfully merging this pull request may close these issues.

2 participants