def renorm_flux(flux, companion_fluxratio: float, compaion: bool):
    """
	Renormalizes light curve flux to account for the existence of an unresolved companion.
	Args:
		flux (numpy array): Normalized flux of each data point.
		companion_fluxratio (float): Proportion of flux that comes from the unresolved companion.
		companion (bool): True if the transit is around the unresolved companion and False if it is not. 
	Returns:
		renormed_flux (nump array): Remormalized flux of each data point.
	"""
    if compaion == True:
        renormed_flux = (flux - (1 - companion_fluxratio)
            ) / companion_fluxratio
    elif compaion == False:
        renormed_flux = (flux - companion_fluxratio) / (1 - companion_fluxratio
            )
    return renormed_flux
