Git Product home page Git Product logo

Comments (7)

MilesCranmer avatar MilesCranmer commented on June 2, 2024 1

What do other units packages do here? If there’s precedent it’s easier to decide on. e.g., what do Unitful, Pint, AstroPy do?

Also note there is @register_unit in the meantime.

from dynamicquantities.jl.

TorkelE avatar TorkelE commented on June 2, 2024 1

Thanks, I will try to get to it this coming week

from dynamicquantities.jl.

MilesCranmer avatar MilesCranmer commented on June 2, 2024

Can we call it 1 Molar instead of 1 M? Otherwise I worry about ambiguity with M for Mega (SI prefix).

But apart from that I'm happy to review a PR on this.

from dynamicquantities.jl.

TorkelE avatar TorkelE commented on June 2, 2024

Don't think I've actually seen it written "Molar", not a full-blooded chemist/biologists though (but I could ask one how weird it would be). "Molar" is better than not having it at all though.

from dynamicquantities.jl.

TorkelE avatar TorkelE commented on June 2, 2024

If I interpret it correct, it is defined as M in both Unitful and Pint:
Unitful (https://github.com/PainterQubits/Unitful.jl/blob/fbf71a66d475423c65bd6e981794e9298ded79da/src/pkgdefaults.jl#L179, line 350)
Pint (https://github.com/hgrecco/pint/blob/master/pint/default_en.txt, line 353

AstroPy has it defined as mol, I think (https://github.com/astropy/astropy/blob/878cc772cd648300367930707f7f6a1f1e5e4172/astropy/units/physical.py#L45, line 45), while seems bad since it is easily confused with mole.

We also use it in Catalyst's current tests for units (which depends on Unitful, but which we want to move to DynamicQuantities): https://github.com/SciML/Catalyst.jl/blob/master/test/miscellaneous_tests/units.jl

from dynamicquantities.jl.

MilesCranmer avatar MilesCranmer commented on June 2, 2024

Thanks! Okay since Unitful and Pint both do M, and since you have a use case, that seems like a good enough reason to do it here as well. So happy to take a PR for this.

from dynamicquantities.jl.

MilesCranmer avatar MilesCranmer commented on June 2, 2024

Closed with #128

from dynamicquantities.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.