Skip to content

Dynamically Add and Remove Units #4

Description

@billdenney

I work with data which uses concentration in both mass and molar units (like ng/mL and nmol/L). I'd like to enable conversion between the mass and molar units. While it's possible to add a .xml units file before loading the library, keeping track of all the files would be complex.

What do you think of adding a two functions to the library like:

ud.map.unit("g", 350, "mole")
ud.reload.system()

Where the first command would add a mapping from mass units to molar units with a conversion of 350 g = 1 mole. And, the second command would reload the unit system to the system default (removing any mapped units).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions