Class: Labimotion::Units
- Inherits:
-
Object
- Object
- Labimotion::Units
- Defined in:
- lib/labimotion/utils/units.rb
Overview
Converter State
Constant Summary collapse
- FIELDS =
[ { "type": "numeric", "field": "acceleration", "label": "Acceleration", "default": "", "position": 10, "placeholder": "acceleration", "units": [{ "key": "mm_s2", "label": "mm/s<sup>2</sup>" }] }, { "type": "numeric", "field": "agitation", "label": "Agitation", "default": "", "position": 20, "placeholder": "agitation", "units": [{ "key": "rpm", "label": "rpm" }] }, { "type": "numeric", "field": "amount_enzyme", "label": "Amount enzyme as μmol/min", "default": "", "position": 30, "placeholder": "amount enzyme as μmol/min", "units": [ { "key": "u", "label": "U", "nm": 1 }, { "key": "mu", "label": "mU", "nm": 1000 }, { "key": "kat", "label": "kat", "nm": 1.667e-8 }, { "key": "mkat", "label": "mkat", "nm": 1.667e-5 }, { "key": "µkat", "label": "µkat", "nm": 0.01667 }, { "key": "nkat", "label": "nkat", "nm": 16.67 } ] }, { "type": "numeric", "field": "amount_substance", "label": "Amount of substance", "default": "", "position": 35, "placeholder": "amount of substance", "units": [ { "key": "mol", "label": "mol", "nm": 1 }, { "key": "mmol", "label": "mmol", "nm": 1000 }, { "key": "umol", "label": "µmol", "nm": 1000000 }, { "key": "nmol", "label": "nmol", "nm": 1.0e9 }, { "key": "pmol", "label": "pmol", "nm": 1.0e12 } ] }, { "type": "numeric", "field": "areal_density", "label": "Areal density", "default": "", "position": 38, "placeholder": "areal density", "units": [ { "key": "kg_m2", "label": "kg m<sup>-2</sup>", "nm": 1 }, { "key": "t_m2", "label": "t m<sup>-2</sup>", "nm": 0.001 }, { "key": "kg_cm2", "label": "kg cm<sup>-2</sup>", "nm": 1e-4 }, { "key": "g_m2", "label": "g m<sup>-2</sup>", "nm": 1000 } ] }, { "type": "numeric", "field": "molarity", "label": "Chem. concentration (Molarity)", "default": "", "position": 40, "placeholder": "molarity", "units": [ { "key": "mol_l", "label": "mol/L", "nm": 1 }, { "key": "mmol_l", "label": "mmol/L", "nm": 1000 }, { "key": "umol_l", "label": "µmol/L", "nm": 1000000 }, { "key": "nmol_l", "label": "nmol/L", "nm": 1000000000 }, { "key": "pmol_l", "label": "pmol/L", "nm": 1000000000000 } ] }, { "type": "numeric", "field": "chem_distances", "label": "Chem. distances", "default": "", "position": 50, "placeholder": "Chem. distances", "units": [{ "key": "angstrom", "label": "Å" }] }, { "type": "numeric", "field": "concentration", "label": "Concentration", "default": "", "position": 60, "placeholder": "concentration", "units": [ { "key": "ng_l", "label": "ng/L", "nm": 1000000 }, { "key": "mg_l", "label": "mg/L", "nm": 1000 }, { "key": "g_l", "label": "g/L", "nm": 1 } ] }, { "type": "numeric", "field": "conductivity", "label": "Conductivity", "default": "", "position": 62, "placeholder": "conductivity", "units": [ { "key": "s_m", "label": "S/m", "nm": 1 }, { "key": "ms_cm", "label": "mS/cm", "nm": 10 } ] }, { "type": "numeric", "field": "currency", "label": "Currency", "default": "", "position": 64, "placeholder": "Currency", "units": [ { "key": "eur", "label": "EUR", "nm": 1, "unit_type": "eur" }, { "key": "chf", "label": "CHF", "nm": 1, "unit_type": "chf" }, { "key": "gbp", "label": "GBP", "nm": 1, "unit_type": "gbp" }, { "key": "usd", "label": "USD", "nm": 1, "unit_type": "usd" }, { "key": "jpy", "label": "JPY", "nm": 1, "unit_type": "jpy" } ] }, { "type": "numeric", "field": "current", "label": "Current", "default": "", "position": 67, "placeholder": "Current", "units": [ { "key": "A", "label": "A", "nm": 1 }, { "key": "mA", "label": "mA", "nm": 1000 }, { "key": "uA", "label": "µA", "nm": 1000000 }, { "key": "nA", "label": "nA", "nm": 1000000000 } ] }, { "type": "numeric", "field": "c_rate", "label": "C-rate", "default": "", "position": 69, "placeholder": "C-rate", "units": [ { "key": "c_h", "label": "1/h", "nm": 1 } ] }, { "type": "numeric", "field": "degree", "label": "Degree", "default": "", "position": 70, "placeholder": "degree", "units": [{ "key": "degree", "label": "°" }] }, { "type": "numeric", "field": "density", "label": "Density", "default": "", "position": 75, "placeholder": "density", "units": [ { "key": "g_cm3", "label": "g/cm<sup>3</sup>", "nm": 1 }, { "key": "kg_l", "label": "kg/l", "nm": 1 } ] }, { "type": "numeric", "field": "dimensionless_concentration", "label": "Dimensionless concentration", "default": "", "position": 79, "placeholder": "dimensionless concentration", "units": [ { "key": "ppm", "label": "ppm", "nm": 1 }, { "key": "ppb", "label": "ppb", "nm": 1000 } ] }, { "type": "numeric", "field": "duration", "label": "Duration", "default": "", "position": 80, "placeholder": "duration", "units": [ { "key": "d", "label": "d", "nm": 1 }, { "key": "h", "label": "h", "nm": 24 }, { "key":