def setup_fit_lif(data): # Input data data_dicts = get_data_dicts(REF_STIM, 'Piezo2CONT') for key, item in data_dicts.items(): data.update(item) # Output data data['single_residual'] = get_single_residual( lmpars, **data_dicts['fit_data_dict'])
def test_get_single_residual(load_data): residual = get_single_residual(**load_data) assert np.allclose(residual, load_data["single_residual"])
def test_get_single_residual(load_data): residual = get_single_residual(**load_data) assert np.allclose(residual, load_data['single_residual'])