def ergsperSecondtoLsun(ergss):
    """
    Converts ergs per second to solar luminosity in L_sun.

    :param ergss: ergs per second
    :type ergss: float or ndarray

    :return: luminosity in L_sun
    :rtype: float or ndarray
    """
    return ergss / 3.839e33