add "arbitrary units" in the list of units · Issue #168 · python-quantities/python-quantities · GitHub
Skip to content

add "arbitrary units" in the list of units #168

Open

Description

@gulpgiulia

Looking at the list of available units, the only "neutral" label is "dimensionless", but it could be inopportune in cases when the quantity is not dimensionless (i.e. not obtained as the ratio of two homogeneous quantities) but rather not specified. For those case, "a.u." (arbitrary units) would be preferable.

Activity

  1. rgerkin commented on Jan 21, 2020

    @rgerkin
    Contributor

    It is easy to understand how you might take a dimensionless quantity and multiply by, say, volts. The result would also have the unit of volts. It's not clear what would happen if you multiply a.u. by volts.

    Is there a use case where using "dimensionless" causes a concrete problem with math operations, or is more about just keeping track of the fact that the units are in fact arbitrary (for graphing the data and making axis labels, for instance)?

  2. ddale commented on Jan 21, 2020

    @ddale
    Member

    My first impression is that any operation involving arbitrary units should yield arbitrary units. a.u. x volts = a.u.

  3. gulpgiulia commented on Jan 21, 2020

    @gulpgiulia
    Author

    or is more about just keeping track of the fact that the units are in fact arbitrary (for graphing the data and making axis labels, for instance)?

    This.

  4. rgerkin commented on Jan 23, 2020

    @rgerkin
    Contributor

    How would other operations be handled? If I add 3 a.u. and 5 mV, what should happen?

  5. gulpgiulia commented on Jan 27, 2020

    @gulpgiulia
    Author

    My first impression is that any operation involving arbitrary units should yield arbitrary units. a.u. x volts = a.u.

    I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions