djwooten/synergy

Bug in synergy.single.parametric_base.py

Opened this issue · 1 comments

d is not defined in this function:

def E_inv(self, E):
    """Evaluate the inverse of this model.
    Parameters
    ----------
    E : array_like
        Effects to get the doses for
    
    Returns
    ----------
    doses : array_like
        Doses which achieve effects E using this model. Will return np.nan for effects outside of the model's effect range, or for non-invertable models
    """
    ret = 0*d
    ret[:] = np.nan
    return ret

Closed on accident