# Path: prospect/sources/constants.py



import numpy as np
from ..sources.constants import cosmo
        The fraction of the host age at which the burst occurred.

    Returns
    -------
    tburst : float, Gyr
        The age of the host when the burst occurred (i.e. the FSPS ``tburst``
        parameter)
    """
    return tage * fage_burst


def tage_from_tuniv(zred=0.0, tage_tuniv=1.0, **extras):
    """This function calculates a galaxy age from the age of the universe at
    ``zred`` and the age given as a fraction of the age of the universe.  This
    allows for both ``zred`` and ``tage`` parameters without ``tage`` exceeding
    the age of the universe.

    Parameters
    ----------
    zred : float
        Cosmological redshift.

    tage_tuniv : float between 0 and 1
        The ratio of ``tage`` to the age of the universe at ``zred``.

    Returns
    -------
    tage : float
        The stellar population age, in Gyr
    """

# Path: prospect/sources/constants.py



# Path: prospect/models/transforms.py
import numpy as np
from ..sources.constants import cosmo

        The fraction of the host age at which the burst occurred.

    Returns
    -------
    tburst : float, Gyr
        The age of the host when the burst occurred (i.e. the FSPS ``tburst``
        parameter)
    """
    return tage * fage_burst


def tage_from_tuniv(zred=0.0, tage_tuniv=1.0, **extras):
    """This function calculates a galaxy age from the age of the universe at
    ``zred`` and the age given as a fraction of the age of the universe.  This
    allows for both ``zred`` and ``tage`` parameters without ``tage`` exceeding
    the age of the universe.

    Parameters
    ----------
    zred : float
        Cosmological redshift.

    tage_tuniv : float between 0 and 1
        The ratio of ``tage`` to the age of the universe at ``zred``.

    Returns
    -------
    tage : float
        The stellar population age, in Gyr
    """

    tuniv = cosmo.age(zred).value