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

Dimensionful quantities with Unitful.jl #19

Merged
merged 1 commit into from
Sep 15, 2018

Conversation

carstenbauer
Copy link
Member

@carstenbauer carstenbauer commented Sep 15, 2018

See #7.

I left the custom unit output as I think J/mol K is nicer than J mol^-1 K^-1.

One could also make this an upstream issue in Unitful.jl and improve the printing of units (PainterQubits/Unitful.jl#18 is similar).

@rahulkp220 rahulkp220 added the enhancement New feature or request label Sep 15, 2018
@rahulkp220
Copy link
Member

@crstnbr We can also add some test cases for this one.

@carstenbauer
Copy link
Member Author

carstenbauer commented Sep 15, 2018

What kind of test do you have in mind? The unit printing is implicitly tested by the stringmime tests.

@carstenbauer
Copy link
Member Author

Ok, I guess I can write some very basic ones.

@rahulkp220
Copy link
Member

@crstnbr Yup, just the basic will work. Wanted to make sure we do have these tested out :)

@carstenbauer
Copy link
Member Author

I'll merge and tag a new v0.1.2 release for this if you approve the changes.

Copy link
Member

@rahulkp220 rahulkp220 left a comment

Choose a reason for hiding this comment

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

LGTM. Are you good to have a new release post this merge? @crstnbr

@carstenbauer
Copy link
Member Author

Maybe we should explicitly mention that the fields are dimensionful in the Readme.md as well. Will add this and proceed afterwards.

@rahulkp220
Copy link
Member

Sure, makes sense. You can also reply to this comment here once we are good with the release.

@carstenbauer carstenbauer merged commit 6084c6b into JuliaPhysics:master Sep 15, 2018
@carstenbauer carstenbauer deleted the units branch September 15, 2018 21:01
melt::Float64
molar_heat::Float64
melt::typeof(1.0K)
molar_heat::typeof(1.0J/(mol*K))

Choose a reason for hiding this comment

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

this reads nice, did not know this works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants