def setup_lif_model(data): data['group_gen_current'] = stress_to_group_current( data['fine_time'], data['fine_stress'], MC_GROUPS, **params) data['spike_time'] = lif_model.get_spikes(data['group_gen_current'])
def test_stress_to_group_current(load_data): group_gen_current = stress_to_group_current(load_data['fine_time'], load_data['fine_stress'], MC_GROUPS, **params) assert np.allclose(group_gen_current, load_data['group_gen_current'])
def test_stress_to_group_current(load_data): group_gen_current = stress_to_group_current( load_data['fine_time'], load_data['fine_stress'], MC_GROUPS, **params) assert np.allclose(group_gen_current, load_data['group_gen_current'])