How to use the plonk.core.units.is_dimension_same function in plonk

To help you get started, we’ve selected a few plonk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dmentipl / plonk / tests / test_units.py View on Github external
def test_dimension_comparison(self):

        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'T^-1 L'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'velocity'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'v'))
        self.assertTrue(plonk.core.units.is_dimension_same('velocity', 'L T^-1'))
        self.assertTrue(plonk.core.units.is_dimension_same('v', 'L T^-1'))
github dmentipl / plonk / tests / test_units.py View on Github external
def test_dimension_comparison(self):

        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'T^-1 L'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'velocity'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'v'))
        self.assertTrue(plonk.core.units.is_dimension_same('velocity', 'L T^-1'))
        self.assertTrue(plonk.core.units.is_dimension_same('v', 'L T^-1'))
github dmentipl / plonk / tests / test_units.py View on Github external
def test_dimension_comparison(self):

        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'T^-1 L'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'velocity'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'v'))
        self.assertTrue(plonk.core.units.is_dimension_same('velocity', 'L T^-1'))
        self.assertTrue(plonk.core.units.is_dimension_same('v', 'L T^-1'))
github dmentipl / plonk / tests / test_units.py View on Github external
def test_dimension_comparison(self):

        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'T^-1 L'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'velocity'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'v'))
        self.assertTrue(plonk.core.units.is_dimension_same('velocity', 'L T^-1'))
        self.assertTrue(plonk.core.units.is_dimension_same('v', 'L T^-1'))
github dmentipl / plonk / tests / test_units.py View on Github external
def test_dimension_comparison(self):

        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'T^-1 L'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'velocity'))
        self.assertTrue(plonk.core.units.is_dimension_same('L T^-1', 'v'))
        self.assertTrue(plonk.core.units.is_dimension_same('velocity', 'L T^-1'))
        self.assertTrue(plonk.core.units.is_dimension_same('v', 'L T^-1'))