예제 #1
0
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'])
예제 #2
0
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'])
예제 #3
0
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'])
예제 #4
0
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'])