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

Added the UDUNITS2 grammar and a graph representation of a unit #140

Merged
merged 7 commits into from
Jan 29, 2019

Conversation

pelson
Copy link
Member

@pelson pelson commented Jan 29, 2019

This is the final step before adding a super trivial interface to turn a graph into a TeX representation (or any other representation we want now [sympy?]).

@pelson pelson requested a review from bjlittle January 29, 2019 09:14
@coveralls
Copy link

coveralls commented Jan 29, 2019

Coverage Status

Coverage increased (+0.5%) to 88.857% when pulling cea76a0 on pelson:parse_udunits into 59ba1a0 on SciTools:master.

| product power // e.g. m2s (s*m^2)
| product MULTIPLY power // e.g. m2*s
| product DIVIDE power // e.g. m2/2
| product WS+ power // e.g. "m2 s"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pelson So the UDUNITS-2 grammar doesn't explicitly define this last case, and yet supports it? Is that right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Also space is defined in the MULTIPLY token in the C grammar, but that isn't actually accurate (whitespace is significant in other parts of the codebase).

@bjlittle
Copy link
Member

@pelson Awesome! 👍

@bjlittle bjlittle merged commit 16cc9c8 into SciTools:master Jan 29, 2019
@pelson pelson deleted the parse_udunits branch January 29, 2019 15:00
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.

4 participants