def complete(prog_comp, obs_comp):
    """
    Observation completion weighting factor.
        - 1.0 if observation not completed
        - 0.0 if observation or program are completed

    Parameters
    ----------
    prog_comp : float
        fraction of program completed.

    obs_comp : float
        fraction of observation completed.

    Returns
    -------
    float
        completion weighting factor
    """
    if obs_comp >= 1. or prog_comp >= 1.:
        return 0
    else:
        return 1