Home
last modified time | relevance | path

Searched refs:as_base_units (Results 1 – 2 of 2) sorted by relevance

/dports/science/py-pymatgen/pymatgen-2022.0.15/pymatgen/core/
H A Dunits.py245 def as_base_units(self): member in Unit
281 uo_base, ofactor = self.as_base_units
282 un_base, nfactor = Unit(new_unit).as_base_units
475 def as_base_units(self): member in FloatWithUnit
482 return self.to(self.unit.as_base_units[0])
666 def as_base_units(self): member in ArrayWithUnit
673 return self.to(self.unit.as_base_units[0])
/dports/science/py-pymatgen/pymatgen-2022.0.15/pymatgen/core/tests/
H A Dtest_units.py153 self.assertEqual(FloatWithUnit(5000000, "Pa"), x.as_base_units)
262 self.assertArrayEqual(ArrayWithUnit([5000000, 10000000], "Pa"), x.as_base_units)