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

unit: remove explicitly prefixed constants #950

Merged
merged 2 commits into from Apr 13, 2019
Merged

Conversation

kortschak
Copy link
Member

Please take a look.

Closes #90.

@kortschak kortschak requested a review from btracey April 9, 2019 00:38
Receiver string
Offset int // From normal (for example, mass base unit is kg, not kg)
PowerOffset int // From normal (for example, mass base unit is kg, not kg)
Copy link
Member

Choose a reason for hiding this comment

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

is kg, not kg?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ha!

Fixed

DimensionName: "Area",
Receiver: "a",
PrintString: "m^2",
TypeComment: "Area represents and area in square metres",
Copy link
Member

Choose a reason for hiding this comment

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

an area

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@kortschak
Copy link
Member Author

PTAL

Copy link
Member

@vladimir-ch vladimir-ch left a comment

Choose a reason for hiding this comment

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

I approve it but cannot tell whether you should wait for @btracey or not, I haven't been paying much attention to unit.

@kortschak
Copy link
Member Author

I'll wait.

@btracey
Copy link
Member

btracey commented Apr 13, 2019

That's such an obvious solution to the Kg problem ... can't believe I didn't think of that.

@kortschak kortschak merged commit 388dfc4 into master Apr 13, 2019
@kortschak
Copy link
Member Author

Which part, the extra constant or the 1e-3?

@btracey
Copy link
Member

btracey commented Apr 13, 2019

Setting the gram to be 1e-3.

@kortschak
Copy link
Member Author

When you remove all the constants, that's what was left. It seemed obvious.

@kortschak kortschak deleted the unit/remove-prefixes branch April 13, 2019 09:28
@btracey
Copy link
Member

btracey commented Apr 13, 2019

I agree, it does seem obvious

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.

unit: clean up unit package
3 participants