gammapy/estimators/flux_point.py
def _get_y_energy_unit(y_unit):
        """Get energy part of the given y unit."""
        try:
            return [_ for _ in y_unit.bases if _.physical_type == "energy"][0]
        except IndexError:
            return u.Unit("TeV")
Get energy part of the given y unit.
Get energy part of the given y unit.
Get energy part of the given y unit .
def _get_y_energy_unit(y_unit):
        try:
            return [_ for _ in y_unit.bases if _.physical_type == "energy"][0]
        except IndexError:
            return u.Unit("TeV")
def _get_y_energy_unit ( y_unit ) : try : return [ _ for _ in y_unit . bases if _ . physical_type == "energy" ] [ 0 ] except IndexError : return u . Unit ( "TeV" )
Get energy part of the given y unit.
Get energy part of the given y unit .
"""Get energy part of the given y unit."""
y_unit