How to use the hepunits.constants.c_light function in hepunits

To help you get started, we’ve selected a few hepunits 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 scikit-hep / particle / src / particle / particle / particle.py View on Github external
def ctau(self):
        # type: () -> Optional[float]
        """
        The particle c*tau, in millimeters.

        None is returned if the particle width (stored in the DB) is unknown.
        """
        return (
            c_light * self.lifetime
            if self.width is not None and self.lifetime is not None
            else None
        )

hepunits

Units and constants in the HEP system of units

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages