ts_lib_units package#

Submodules#

Module contents#

class Unit[source]#

Bases: object

TetraScience standard units

ABSORBANCE_UNIT = TetraUnit(AbsorbanceUnit, None, http://purl.allotrope.org/ontology/qudt-ext/unit#AbsorbanceUnit)#
AMPERE = TetraUnit(Ampere, ampere, http://qudt.org/vocab/unit/A)#
ANGSTROM = TetraUnit(Angstrom, angstrom, http://qudt.org/vocab/unit/ANGSTROM)#
ARBITRARY_UNIT = TetraUnit(ArbitraryUnit, arbitrary_unit, http://purl.allotrope.org/ontology/qudt-ext/unit#ArbitraryUnit)#
ARBITRARY_UNIT_MINUTE = TetraUnit(ArbitraryUnitMinute, arbitrary_unit * minute, None)#
ARBITRARY_UNIT_PER_MINUTE = TetraUnit(ArbitraryUnitPerMinute, arbitrary_unit / minute, None)#
ARBITRARY_UNIT_PER_SECOND = TetraUnit(ArbitraryUnitPerSecond, arbitrary_unit / second, None)#
BAR = TetraUnit(Bar, bar, http://qudt.org/vocab/unit/BAR)#
BAR_PER_MINUTE = TetraUnit(BarPerMinute, bar / minute, None)#
BAR_PER_SECOND = TetraUnit(BarPerSecond, bar / second, None)#
BYTE = TetraUnit(Byte, byte, http://qudt.org/vocab/unit/BYTE)#
CALIBRATED_UNIT = TetraUnit(CalibratedUnit, None, None)#
CALIBRATED_UNIT_TIMES_MICROMETER_SQUARED = TetraUnit(CalibratedUnitTimesMicrometerSquared, None, None)#
CENTIMETER = TetraUnit(Centimeter, centimeter, http://qudt.org/vocab/unit/CentiM)#
CENTIMETER_PER_HOUR = TetraUnit(CentimeterPerHour, centimeter / hour, None)#
CENTIPOISE = TetraUnit(Centipoise, centipoise, http://qudt.org/vocab/unit/CentiPOISE)#
COUNT = TetraUnit(Count, count, None)#
COUNT_MINUTE = TetraUnit(CountMinute, count * minute, None)#
COUNT_PER_HOUR = TetraUnit(CountPerHour, count / hour, None)#
COUNT_PER_LITER = TetraUnit(CountPerLiter, count / liter, None)#
COUNT_PER_MICROLITER = TetraUnit(CountPerMicroliter, count / microliter, None)#
COUNT_PER_MILLILITER = TetraUnit(CountPerMilliliter, count / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#CountsPerMilliliter)#
COUNT_PER_MILLISECOND = TetraUnit(CountPerMilliSecond, count / millisecond, None)#
COUNT_PER_MINUTE = TetraUnit(CountPerMinute, count / minute, None)#
COUNT_PER_NANOLITER = TetraUnit(CountPerNanoliter, count / nanoliter, None)#
COUNT_PER_SECOND = TetraUnit(CountPerSecond, count / second, http://purl.allotrope.org/ontology/qudt-ext/unit#CountsPerSecond)#
CUBIC_CENTIMETER_PER_MOLE = TetraUnit(CubicCentimeterPerMole, (centimeter ** 3) / mole, None)#
CYCLE_NUMBER = TetraUnit(CycleNumber, None, None)#
DALTON = TetraUnit(Dalton, dalton, http://qudt.org/vocab/unit/Da)#
DALTON_PER_SECOND = TetraUnit(DaltonPerSecond, dalton / second, None)#
DAY = TetraUnit(Day, day, http://qudt.org/vocab/unit/DAY)#
DECIBEL = TetraUnit(Decibel, decibel, http://qudt.org/vocab/unit/DeciB)#
DEGREE_ANGLE = TetraUnit(DegreeAngle, degree, http://qudt.org/vocab/unit/DEG)#
DEGREE_CELSIUS = TetraUnit(DegreeCelsius, degree_Celsius, http://qudt.org/vocab/unit/DEG_C)#
DEGREE_CELSIUS_PER_MINUTE = TetraUnit(DegreeCelsiusPerMinute, delta_degree_Celsius / minute, http://qudt.org/vocab/unit/DEG_C-PER-MIN)#
DEGREE_CELSIUS_PER_SECOND = TetraUnit(DegreeCelsiusPerSecond, delta_degree_Celsius / second, http://qudt.org/vocab/unit/DEG_C-PER-SEC)#
DEGREE_FAHRENHEIT = TetraUnit(DegreeFahrenheit, degree_Fahrenheit, http://qudt.org/vocab/unit/DEG_F)#
DEGREE_PER_MINUTE = TetraUnit(DegreePerMinute, degree / minute, http://qudt.org/vocab/unit/DEG-PER-MIN)#
DIMENSIONLESS_MICRO_PER_BAR = TetraUnit(DimensionlessMicroPerBar, 1 / megabar, http://purl.allotrope.org/ontology/qudt-ext/unit#DimensionlessMicroPerBar)#
ELECTRON_VOLT = TetraUnit(ElectronVolt, electron_volt, http://qudt.org/vocab/unit/EV)#
ENDOTOXIN_UNIT = TetraUnit(EndotoxinUnit, endotoxin_unit, None)#
ENDOTOXIN_UNIT_PER_NANOGRAM = TetraUnit(EndotoxinUnitPerNanogram, endotoxin_unit / nanogram, None)#
ENDOTOXIN_UNIT_PER_MICROGRAM = TetraUnit(EndotoxinUnitPerMicrogram, endotoxin_unit / microgram, None)#
ENDOTOXIN_UNIT_PER_GRAM = TetraUnit(EndotoxinUnitPerGram, endotoxin_unit / gram, None)#
ENDOTOXIN_UNIT_PER_MICROLITER = TetraUnit(EndotoxinUnitPerMicroliter, endotoxin_unit / microliter, None)#
ENDOTOXIN_UNIT_PER_MILLILITER = TetraUnit(EndotoxinUnitPerMilliliter, endotoxin_unit / milliliter, None)#
ENDOTOXIN_UNIT_PER_LITER = TetraUnit(EndotoxinUnitPerLiter, endotoxin_unit / liter, None)#
FEMTOGRAM = TetraUnit(Femtogram, femtogram, http://purl.allotrope.org/ontology/qudt-ext/unit#Femtogram)#
FEMTOLITER = TetraUnit(Femtoliter, femtoliter, http://purl.allotrope.org/ontology/qudt-ext/unit#Femtoliter)#
FRAME_PER_SECOND = TetraUnit(FramePerSecond, None, http://qudt.org/vocab/unit/FRAME-PER-SEC)#
GIGACOUNT = TetraUnit(Gigacount, gigacount, None)#
GRAM = TetraUnit(Gram, gram, http://qudt.org/vocab/unit/GM)#
GRAM_PER_MILLILITER = TetraUnit(GramPerMilliliter, gram / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#GramPerMilliliter)#
GRAM_PER_LITER = TetraUnit(GramPerLiter, gram / liter, http://purl.allotrope.org/ontology/qudt-ext/unit#GramPerLiter)#
GRAM_PER_LITER_SOLVENT = TetraUnit(GramPerLiterSolvent, None, None)#
GRAM_PER_LITER_SOLUTION = TetraUnit(GramPerLiterSolution, None, None)#
GRAM_PER_MOLE = TetraUnit(GramPerMole, gram / mole, http://purl.allotrope.org/ontology/qudt-ext/unit#GramPerMole)#
HERTZ = TetraUnit(Hertz, hertz, http://qudt.org/vocab/unit/HZ)#
HOUR = TetraUnit(Hour, hour, http://qudt.org/vocab/unit/HR)#
INCH = TetraUnit(Inch, inch, http://qudt.org/vocab/unit/IN)#
INTENSITY = TetraUnit(Intensity, None, None)#
JOULE = TetraUnit(Joule, joule, http://qudt.org/vocab/unit/J)#
JOULE_PER_MOLE = TetraUnit(JoulePerMole, joule / mole, None)#
JOULE_PER_DEGREE_CELSIUS = TetraUnit(JoulePerDegreeCelsius, joule / delta_degree_Celsius, None)#
JOULE_PER_GRAM_PER_DEGREE_CELSIUS = TetraUnit(JoulePerGramPerDegreeCelsius, joule / gram / delta_degree_Celsius, None)#
KELVIN = TetraUnit(Kelvin, kelvin, http://qudt.org/vocab/unit/K)#
KELVIN_MINUTE = TetraUnit(KelvinMinute, kelvin * minute, None)#
KILOCALORIE_PER_MOLE = TetraUnit(KilocaloriePerMole, kilocalorie / mole, http://qudt.org/vocab/unit/KiloCAL-PER-MOL)#
KILOCOUNT_PER_SECOND = TetraUnit(KilocountPerSecond, kilocount / second, None)#
KILODALTON = TetraUnit(KiloDalton, kilodalton, None)#
KILOGRAM = TetraUnit(Kilogram, kilogram, http://qudt.org/vocab/unit/KiloGM)#
KILOGRAM_PER_CUBIC_METER = TetraUnit(KilogramPerCubicMeter, kilogram / (meter ** 3), http://qudt.org/vocab/unit/KiloGM-PER-M3)#
KILOGRAM_PER_METER = TetraUnit(KilogramPerMeter, kilogram / meter, http://qudt.org/vocab/unit/KiloGM-PER-M)#
KILOGRAM_PER_MOLE = TetraUnit(KilogramPerMole, kilogram / mole, http://qudt.org/vocab/unit/KiloGM-PER-MOL)#
KILOGRAM_PER_SQUARE_METER = TetraUnit(KilogramPerSquareMeter, kilogram / (meter ** 2), http://qudt.org/vocab/unit/KiloGM-PER-M2)#
KILOHERTZ = TetraUnit(KiloHertz, kilohertz, http://qudt.org/vocab/unit/KiloHZ)#
KILOJOULE_PER_MOLE = TetraUnit(KiloJoulePerMole, kilojoule / mole, None)#
KILOPASCAL = TetraUnit(KiloPascal, kilopascal, http://qudt.org/vocab/unit/KiloPA)#
KILOPOND = TetraUnit(KiloPond, kilopond, http://qudt.org/vocab/unit/KiloPOND)#
KILOVOLT = TetraUnit(KiloVolt, kilovolt, http://purl.allotrope.org/ontology/qudt-ext/unit#KiloVolt)#
LIGHT_SCATTERING_UNIT = TetraUnit(LightScatteringUnit, None, None)#
LITER = TetraUnit(Liter, liter, http://qudt.org/vocab/unit/L)#
LITER_PER_HOUR = TetraUnit(LiterPerHour, liter / hour, None)#
LITER_PER_MINUTE = TetraUnit(LiterPerMinute, liter / minute, http://purl.allotrope.org/ontology/qudt-ext/unit#LiterPerMinute)#
LITER_PER_SQUARE_METER = TetraUnit(LiterPerSquareMeter, liter / (meter ** 2), None)#
LMH_PER_PSI = TetraUnit(LiterPerSquareMeterPerHourPerPoundPerSquareInch, liter / ((meter**2) * hour * psi), None)#
LITER_PER_SQUARE_METER_PER_MINUTE = TetraUnit(LiterPerSquareMeterPerMinute, liter / ((meter**2) * minute), None)#
LITER_PER_SQUARE_METER_PER_HOUR = TetraUnit(LiterPerSquareMeterPerHour, liter / ((meter**2) * hour), None)#
MEGACOUNT_PER_SECOND = TetraUnit(MegacountPerSecond, megacount / second, None)#
MEGAHERTZ = TetraUnit(MegaHertz, megahertz, http://qudt.org/vocab/unit/MegaHZ)#
MEGAJOULE = TetraUnit(MegaJoule, megajoule, http://qudt.org/vocab/unit/MegaJ)#
MEGAPASCAL = TetraUnit(MegaPascal, megapascal, http://purl.allotrope.org/ontology/qudt-ext/unit#MegaPascal)#
METER = TetraUnit(Meter, meter, http://qudt.org/vocab/unit/M)#
METER_PER_SECOND = TetraUnit(MeterPerSecond, meter / second, http://qudt.org/vocab/unit/M-PER-SEC)#
METER_PER_SECOND_SQUARED = TetraUnit(MeterPerSecondSquared, meter / (second ** 2), http://qudt.org/vocab/unit/M-PER-SEC2)#
MICROAMPERE = TetraUnit(MicroAmpere, microampere, http://qudt.org/vocab/unit/MicroA)#
MICROGRAM = TetraUnit(Microgram, microgram, http://purl.allotrope.org/ontology/qudt-ext/unit#Microgram)#
MICROGRAM_PER_MILLILITER = TetraUnit(MicrogramPerMilliliter, microgram / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#MicrogramPerMilliliter)#
MICROGRAM_PER_LITER = TetraUnit(MicrogramPerLiter, microgram / liter, http://purl.allotrope.org/ontology/qudt-ext/unit#MicrogramPerLiter)#
MICROGRAM_PER_MICROLITER = TetraUnit(MicrogramPerMicroliter, microgram / microliter, http://purl.allotrope.org/ontology/qudt-ext/unit#MicrogramPerMicroliter)#
MICROLITER = TetraUnit(Microliter, microliter, http://purl.allotrope.org/ontology/qudt-ext/unit#Microliter)#
MICROLITER_PER_MINUTE = TetraUnit(MicroliterPerMinute, microliter / minute, http://purl.allotrope.org/ontology/qudt-ext/unit#MicroliterPerMinute)#
MICROLITER_PER_SECOND = TetraUnit(MicroliterPerSecond, microliter / second, http://purl.allotrope.org/ontology/qudt-ext/unit#MicroliterPerSecond)#
MICROMETER = TetraUnit(Micrometer, micrometer, http://qudt.org/vocab/unit/MicroM)#
MICROMETER_PER_SECOND = TetraUnit(MicrometerPerSecond, micrometer / second, http://qudt.org/vocab/unit/MicroM-PER-SEC)#
MICROMOLE = TetraUnit(Micromole, micromole, http://purl.allotrope.org/ontology/qudt-ext/unit#Micromole)#
MICROMOLAR = TetraUnit(Micromolar, micromolar, http://purl.allotrope.org/ontology/qudt-ext/unit#Micromolar)#
MICRONEWTON_METER = TetraUnit(MicronewtonMeter, micronewton * meter, http://qudt.org/vocab/unit/MicroN-M)#
MICROSECOND = TetraUnit(MicroSecond, microsecond, http://qudt.org/vocab/unit/MicroSEC)#
MICROSIEMENS = TetraUnit(Microsiemens, microsiemens, http://qudt.org/vocab/unit/MicroS)#
MICROSIEMENS_MINUTE = TetraUnit(MicrosiemensMinute, microsiemens * minute, None)#
MICROSIEMENS_PER_HOUR = TetraUnit(MicrosiemensPerHour, microsiemens / hour, None)#
MICROSIEMENS_PER_MINUTE = TetraUnit(MicrosiemensPerMinute, microsiemens / minute, None)#
MICROSIEMENS_PER_SECOND = TetraUnit(MicrosiemensPerSecond, microsiemens / second, None)#
MICROVOLT = TetraUnit(Microvolt, microvolt, http://purl.allotrope.org/ontology/qudt-ext/unit#Microvolt)#
MICROVOLT_TIMES_SECOND = TetraUnit(MicrovoltTimesSecond, microvolt * second, http://purl.allotrope.org/ontology/qudt-ext/unit#MicroVoltTimesSecond)#
MILLI_ABSORBANCE_UNIT = TetraUnit(MilliAbsorbanceUnit, None, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliAbsorbanceUnit)#
MILLI_ABSORBANCE_UNIT_TIMES_MINUTE = TetraUnit(MilliAbsorbanceUnitTimesMinute, None, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliAbsorbanceUnitTimesMinute)#
MILLI_ABSORBANCE_UNIT_TIMES_MILLILITER = TetraUnit(MilliAbsorbanceUnitTimesMilliliter, None, None)#
MILLI_ARBITRARY_UNIT = TetraUnit(MilliArbitraryUnit, milliarbitrary_unit, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliArbitraryUnit)#
MILLI_ARBITRARY_UNIT_MINUTE = TetraUnit(MilliArbitraryUnitMinute, milliarbitrary_unit * minute, None)#
MILLI_ARBITRARY_UNIT_PER_HOUR = TetraUnit(MilliArbitraryUnitPerHour, milliarbitrary_unit / hour, None)#
MILLI_ARBITRARY_UNIT_PER_MINUTE = TetraUnit(MilliArbitraryUnitPerMinute, milliarbitrary_unit / minute, None)#
MILLI_ARBITRARY_UNIT_PER_SECOND = TetraUnit(MilliArbitraryUnitPerSecond, milliarbitrary_unit / second, None)#
MILLIAMPERE = TetraUnit(MilliAmpere, milliampere, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliAmpere)#
MILLIDALTON = TetraUnit(MilliDalton, millidalton, None)#
MILLIDEGREE = TetraUnit(MilliDegreeAngle, millidegree, None)#
MILLIGRAM = TetraUnit(Milligram, milligram, http://purl.allotrope.org/ontology/qudt-ext/unit#Milligram)#
MILLIGRAM_PER_COUNT = TetraUnit(MilligramPerCount, milligram / count, None)#
MILLIGRAM_PER_KILOGRAM = TetraUnit(MilligramPerKilogram, milligram / kilogram, http://purl.allotrope.org/ontology/qudt-ext/unit#MilligramPerKilogram)#
MILLIGRAM_PER_LITER = TetraUnit(MilligramPerLiter, milligram / liter, http://purl.allotrope.org/ontology/qudt-ext/unit#MilligramPerLiter)#
MILLIGRAM_PER_MILLILITER = TetraUnit(MilligramPerMilliliter, milligram / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#MilligramPerMilliliter)#
MILLIKELVIN = TetraUnit(Millikelvin, millikelvin, None)#
MILLILITER = TetraUnit(Milliliter, milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#Milliliter)#
MILLILITER_PER_GRAM = TetraUnit(MilliliterPerGram, milliliter / gram, None)#
MILLILITER_PER_MILLIGRAM_CENTIMETER = TetraUnit(MilliliterPerMilligramCentimeter, milliliter / (milligram * centimeter), None)#
MILLILITER_PER_MINUTE = TetraUnit(MilliliterPerMinute, milliliter / minute, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliliterPerMinute)#
MILLILITER_PER_MINUTE_SQUARED = TetraUnit(MilliliterPerMinuteSquared, milliliter / (minute ** 2), http://purl.allotrope.org/ontology/qudt-ext/unit#MilliliterPerMinuteSquared)#
MILLILITER_PER_SECOND = TetraUnit(MilliliterPerSecond, milliliter / second, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliliterPerSecond)#
MILLIMETER = TetraUnit(Millimeter, millimeter, http://qudt.org/vocab/unit/MilliM)#
MILLIMETER_OF_MERCURY = TetraUnit(MillimeterOfMercury, millimeter_Hg, http://qudt.org/vocab/unit/MilliM_HG)#
MILLIMETER_PER_SECOND_SQUARED = TetraUnit(MillimeterPerSecondSquared, millimeter / (second ** 2), None)#
MILLIMOLAR = TetraUnit(Millimolar, millimolar, http://purl.allotrope.org/ontology/qudt-ext/unit#Millimolar)#
MILLIMOLE = TetraUnit(Millimole, millimole, http://purl.allotrope.org/ontology/qudt-ext/unit#Millimole)#
MILLIMOLE_PER_LITER = TetraUnit(MillimolePerLiter, millimole / liter, http://purl.allotrope.org/ontology/qudt-ext/unit#MillimolePerLiter)#
MILLINORMAL = TetraUnit(MilliNormal, None, None)#
MILLION_CELLS_PER_MILLILITER = TetraUnit(MillionCellsPerMilliliter, megacount / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#MillionCellsPerMilliliter)#
MILLIOSMOLE_PER_KILOGRAM = TetraUnit(MilliOsmolePerKilogram, None, None)#
MILLIPASCAL_SECOND = TetraUnit(MillipascalSecond, millipascal * second, None)#
MILLISECOND = TetraUnit(MilliSecond, millisecond, http://qudt.org/vocab/unit/MilliSEC)#
MILLISIEMEN = TetraUnit(Millisiemens, millisiemens, None)#
MILLISIEMENS_PER_CENTIMETER_SECOND = TetraUnit(MillisiemensPerCentimeterSecond, millisiemens / (centimeter * second), None)#
MILLISIEMENS_PER_CM = TetraUnit(MillisiemensPerCentimeter, millisiemens / centimeter, http://purl.allotrope.org/ontology/qudt-ext/unit#MillisiemenPerCentimeter)#
MILLIVOLT = TetraUnit(MilliVolt, millivolt, http://purl.allotrope.org/ontology/qudt-ext/unit#Millivolt)#
MILLIVOLT_PER_PH = TetraUnit(MillivoltPerPH, None, None)#
MILLIWATT = TetraUnit(MilliWatt, milliwatt, http://purl.allotrope.org/ontology/qudt-ext/unit#MilliWatt)#
MINUTE_TIME = TetraUnit(MinuteTime, minute, http://qudt.org/vocab/unit/MIN)#
MINUTE_TIME_SQUARED = TetraUnit(MinuteTimeSquared, minute ** 2, None)#
MOLE = TetraUnit(Mole, mole, http://qudt.org/vocab/unit/MOL)#
MOLAR = TetraUnit(Molar, molar, http://purl.allotrope.org/ontology/qudt-ext/unit#Molar)#
MOLE_FRACTION = TetraUnit(MoleFraction, None, None)#
NANOAMPERE = TetraUnit(NanoAmpere, nanoampere, http://purl.allotrope.org/ontology/qudt-ext/unit#NanoAmpere)#
NANOGRAM = TetraUnit(Nanogram, nanogram, http://purl.allotrope.org/ontology/qudt-ext/unit#Nanogram)#
NANOGRAM_PER_MICROLITER = TetraUnit(NanogramPerMicroliter, nanogram / microliter, http://purl.allotrope.org/ontology/qudt-ext/unit#NanogramPerMicroliter)#
NANOGRAM_PER_MILLILITER = TetraUnit(NanogramPerMilliliter, nanogram / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#NanogramPerMilliliter)#
NANOGRAM_PER_LITER = TetraUnit(NanogramPerLiter, nanogram / liter, http://purl.allotrope.org/ontology/qudt-ext/unit#NanogramPerLiter)#
NANOMETER = TetraUnit(Nanometer, nanometer, http://purl.allotrope.org/ontology/qudt-ext/unit#Nanometer)#
NANOMETERPERMINUTE = TetraUnit(NanometerPerMinute, nanometer / minute, None)#
NANOMOLAR = TetraUnit(Nanomolar, nanomolar, http://purl.allotrope.org/ontology/qudt-ext/unit#Nanomolar)#
NANOLITER = TetraUnit(Nanoliter, nanoliter, http://purl.allotrope.org/ontology/qudt-ext/unit#Nanoliter)#
NANOLITER_PER_BAR = TetraUnit(NanoliterPerBar, nanoliter / bar, None)#
NANOLITER_PER_SECOND = TetraUnit(NanoliterPerSecond, nanoliter / second, None)#
NANOMOLE = TetraUnit(Nanomole, nanomole, http://purl.allotrope.org/ontology/qudt-ext/unit#Nanomole)#
NANOSECOND = TetraUnit(NanoSecond, nanosecond, None)#
NEWTON = TetraUnit(Newton, newton, http://qudt.org/vocab/unit/N)#
NEWTON_METER = TetraUnit(NewtonMeter, newton * meter, http://qudt.org/vocab/unit/N-M)#
OHM = TetraUnit(Ohm, ohm, http://qudt.org/vocab/unit/OHM)#
OSMOLE = TetraUnit(Osmole, None, None)#
OSMOLE_PER_KILOGRAM = TetraUnit(OsmolePerKilogram, None, None)#
OSMOLE_PER_LITER = TetraUnit(OsmolesPerLiter, None, http://purl.allotrope.org/ontology/qudt-ext/unit#OsmolesPerLiter)#
PARTS_PER_BILLION = TetraUnit(PartsPerBillion, ppb, http://purl.allotrope.org/ontology/qudt-ext/unit#PartsPerBillion)#
PARTS_PER_MILLION = TetraUnit(PartsPerMillion, ppm, http://purl.allotrope.org/ontology/qudt-ext/unit#PartsPerMillion)#
PARTS_PER_THOUSAND = TetraUnit(PartsPerThousand, permille, http://qudt.org/vocab/unit/PPTH)#
PASCAL = TetraUnit(Pascal, pascal, http://qudt.org/vocab/unit/PA)#
PASCAL_SECOND = TetraUnit(PascalSecond, pascal * second, http://qudt.org/vocab/unit/PA-SEC)#
PERCENT = TetraUnit(Percent, percent, http://qudt.org/vocab/unit/PERCENT)#
PERCENT_PER_DEGREE_CELSIUS = TetraUnit(PercentPerDegreeCelsius, percent / delta_degree_Celsius, http://qudt.org/vocab/unit/PERCENT-PER-DEG_C)#
PERCENT_VOLUME = TetraUnit(PercentVolume, None, None)#
PERMITTIVITY#

A class to represent a deprecated unit in the TetraScience Unit Vocabulary

PER_BAR = TetraUnit(PerBar, 1 / bar, http://qudt.org/vocab/unit/PER-BAR)#
PER_SECOND = TetraUnit(PerSecond, 1 / second, http://qudt.org/vocab/unit/PER-SEC)#
PICOAMPERE = TetraUnit(PicoAmpere, picoampere, http://purl.allotrope.org/ontology/qudt-ext/unit#PicoAmpere)#
PICOAMPERE_PER_HOUR = TetraUnit(PicoAmperePerHour, picoampere / hour, None)#
PICOAMPERE_PER_MINUTE = TetraUnit(PicoAmperePerMinute, picoampere / minute, None)#
PICOAMPERE_PER_SECOND = TetraUnit(PicoAmperePerSecond, picoampere / second, None)#
PICOAMPERE_TIMES_MINUTE = TetraUnit(PicoAmpereTimesMinute, picoampere * minute, http://purl.allotrope.org/ontology/qudt-ext/unit#PicoAmperesTimesMinute)#
PICOGRAM = TetraUnit(Picogram, picogram, http://purl.allotrope.org/ontology/qudt-ext/unit#Picogram)#
PICOGRAM_PER_MILLILITER = TetraUnit(PicogramPerMilliliter, picogram / milliliter, http://purl.allotrope.org/ontology/qudt-ext/unit#PicogramPerMilliliter)#
PICOGRAM_PER_LITER = TetraUnit(PicogramPerLiter, picogram / liter, http://purl.allotrope.org/ontology/qudt-ext/unit#PicogramPerLiter)#
PICOMETER = TetraUnit(Picometer, picometer, http://purl.allotrope.org/ontology/qudt-ext/unit#Picometer)#
PICOMOLE = TetraUnit(Picomole, picomole, http://purl.allotrope.org/ontology/qudt-ext/unit#Picomole)#
PICOMOLAR = TetraUnit(Picomolar, picomolar, http://purl.allotrope.org/ontology/qudt-ext/unit#Picomolar)#
POISE = TetraUnit(Poise, poise, http://qudt.org/vocab/unit/POISE)#
POUND_PER_SQUARE_FOOT = TetraUnit(PoundPerSquareFoot, pound / foot ** 2, http://qudt.org/vocab/unit/LB_F-PER-FT2)#
POUND_PER_SQUARE_INCH = TetraUnit(PoundPerSquareInch, psi, http://qudt.org/vocab/unit/LB_F-PER-IN2)#
POUND_PER_SQUARE_INCH_GAUGE = TetraUnit(PoundPerSquareInchGauge, None, None)#
POUND_PER_SQUARE_INCH_PER_SECOND = TetraUnit(PoundPerSquareInchPerSecond, psi / second, None)#
RADIAN = TetraUnit(Radian, radian, http://qudt.org/vocab/unit/RAD)#
RECIPROCAL_CENTIMETER = TetraUnit(ReciprocalCentimeter, reciprocal_centimeter, http://purl.allotrope.org/ontology/qudt-ext/unit#ReciprocalCentimeter)#
RECIPROCAL_MINUTE#

A class to represent a deprecated unit in the TetraScience Unit Vocabulary

PER_KELVIN = TetraUnit(PerKelvin, 1 / kelvin, None)#
PER_MINUTE = TetraUnit(PerMinute, 1 / minute, http://purl.allotrope.org/ontology/qudt-ext/unit#PerMinute)#
RELATIVE_FLUORESCENCE_UNIT = TetraUnit(RelativeFluorescenceUnit, None, http://purl.allotrope.org/ontology/qudt-ext/unit#RelativeFluorescenceUnit)#
RELATIVE_PERMITTIVITY = TetraUnit(RelativePermittivity, None, http://purl.allotrope.org/ontology/qudt-ext/unit#Unitless)#
REVOLUTION_PER_HOUR = TetraUnit(RevolutionPerHour, revolution / hour, http://qudt.org/vocab/unit/REV-PER-HR)#
REVOLUTION_PER_MINUTE = TetraUnit(RevolutionPerMinute, rpm, http://qudt.org/vocab/unit/REV-PER-MIN)#
REVOLUTION_PER_SECOND = TetraUnit(RevolutionPerSecond, rps, http://qudt.org/vocab/unit/REV-PER-SEC)#
SECOND_PER_POINT = TetraUnit(SecondPerPoint, None, None)#
SECOND_TIME = TetraUnit(SecondTime, second, http://qudt.org/vocab/unit/SEC)#
SIEMENS_PER_CENTIMETER_SECOND = TetraUnit(SiemensPerCentimeterSecond, siemens / (centimeter * second), None)#
SQUARE_CENTIMETER = TetraUnit(SquareCentimeter, centimeter ** 2, http://qudt.org/vocab/unit/CentiM2)#
SQUARE_CENTIMETER_PER_SECOND = TetraUnit(SquareCentimeterPerSecond, centimeter ** 2 / second, None)#
SQUARE_METER = TetraUnit(SquareMeter, meter ** 2, http://qudt.org/vocab/unit/M2)#
SQUARE_METER_PER_GRAM = TetraUnit(SquareMeterPerGram, meter ** 2 / gram, None)#
SQUARE_MICROMETER = TetraUnit(SquareMicrometer, micrometer ** 2, http://qudt.org/vocab/unit/MicroM2)#
SQUARE_ROOT_MEGAPASCAL = TetraUnit(SquareRootMegaPascal, megapascal ** 0.5, None)#
TON_OF_REFRIGERATION = TetraUnit(TonOfRefrigeration, None, http://qudt.org/vocab/unit/TON_FG)#
TORR = TetraUnit(Torr, torr, http://qudt.org/vocab/unit/TORR)#
UNITLESS = TetraUnit(Unitless, 1, http://purl.allotrope.org/ontology/qudt-ext/unit#Unitless)#
ENZYME_UNIT_PER_LITER = TetraUnit(InternationalUnitPerLiter, enzyme_unit / liter, http://qudt.org/vocab/unit/ENZ-PER-L)#
VOLT = TetraUnit(Volt, volt, http://qudt.org/vocab/unit/V)#
VOLT_HOUR = TetraUnit(VoltHour, volt * hour, None)#
VOXEL = TetraUnit(Voxel, None, None)#
WATT = TetraUnit(Watt, watt, http://qudt.org/vocab/unit/W)#
WATT_MINUTE = TetraUnit(WattMinute, watt * minute, None)#
WATT_PER_GRAM = TetraUnit(WattPerGram, watt / gram, http://purl.allotrope.org/ontology/qudt-ext/unit#WattPerGram)#
WATT_PER_KELVIN = TetraUnit(WattPerKelvin, watt / kelvin, http://purl.allotrope.org/ontology/qudt-ext/unit#WattPerKelvin)#
WATT_PER_KELVIN_SECOND = TetraUnit(WattPerKelvinSecond, watt / (kelvin * second), None)#
classmethod get_all_units() → Dict[str, TetraUnit][source]#

Get all units in the library

classmethod contains(ts_format: str) → bool[source]#

Check if a unit is in the library

classmethod get(ts_format: str) → TetraUnit[source]#

Get a unit by its ts_string

class UnitParser(mappings: Mapping[Hashable, str | None] | List[Mapping[Hashable, str | None]])[source]#

Bases: object

Class for parsing raw unit strings to standard unit strings

parse(raw_unit: str | None) → str | TetraUnit | None[source]#

Parse a raw unit string to a standard unit string.

classmethod from_unit_type(unit_type: UnitType | List[UnitType]) → UnitParser[source]#

Create a UnitParser instance from a unit type

Parameters:
  • unit_type – UnitType or list of UnitType

  • UnitType.CONCENTRATION ((e.g.) –

  • [UnitType.MOLE –

  • UnitType.MOLAR_MASS]) –

classmethod from_custom_mapping(mapping: dict[str, TetraUnit]) → UnitParser[source]#

Create a UnitParser instance from a custom mapping

Parameters:
  • mapping – A dictionary mapping raw unit strings to TetraUnit instances

  • {"mg/L" ((e.g.) – Unit.MILLIGRAM_PER_LITER, “g/L”: Unit.GRAM_PER_LITER})

classmethod from_unit_type_and_custom_mapping(mapping: list[dict[str, TetraUnit]] | dict[str, TetraUnit], unit_type: UnitType | List[UnitType], strict_mode: bool = True) → UnitParser[source]#

Create a UnitParser instance from a custom mapping and a unit type

Parameters:
  • mapping – A dictionary mapping raw unit strings to TetraUnit instances

  • unit_type – UnitType or list of UnitType

  • strict_mode – Whether to raise an error if the mapping provided overwrites any existing mappings for the unit type.

  • True. (Defaults to) –

classmethod available_units(unit_type: UnitType) → str[source]#

Checks the unit group for a given unit string

unmapped_units: Set[Hashable] = {}#
mapping: Mapping[Hashable, str | TetraUnit | None] = {}#