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).
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:
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).