def setup_stress_to_spike(data):
    data['spike_time'], data['fr_inst'] = stress_to_fr_inst(
        data['fine_time'], data['fine_stress'], MC_GROUPS, **params)
    data['interp_time'], data['interp_stress'] = get_interp_stress(
        interp_static_displ)
    data['extrap_time'], data['extrap_stress'] = get_interp_stress(
        extrap_static_displ)
Exemple #2
0
def setup_stress_to_spike(data):
    data['spike_time'], data['fr_inst'] = stress_to_fr_inst(
        data['fine_time'], data['fine_stress'], MC_GROUPS, **params)
    data['interp_time'], data['interp_stress'] = get_interp_stress(
        interp_static_displ)
    data['extrap_time'], data['extrap_stress'] = get_interp_stress(
        extrap_static_displ)
Exemple #3
0
def get_mod_spike(lmpars, groups, time, stress):
    params = lmpars_to_params(lmpars)
    mod_spike_time, mod_fr_inst = stress_to_fr_inst(time, stress,
                                                    groups, **params)
    return (mod_spike_time, mod_fr_inst)
Exemple #4
0
def get_mod_spike(lmpars, groups, time, stress):
    params = lmpars_to_params(lmpars)
    mod_spike_time, mod_fr_inst = stress_to_fr_inst(time, stress, groups,
                                                    **params)
    return (mod_spike_time, mod_fr_inst)
def test_stress_to_spike(load_data):
    spike_time, fr_inst = stress_to_fr_inst(load_data['fine_time'],
                                            load_data['fine_stress'],
                                            MC_GROUPS, **params)
    assert np.allclose(load_data['spike_time'], spike_time)
    assert np.allclose(load_data['fr_inst'], fr_inst)
def test_stress_to_spike(load_data):
    spike_time, fr_inst = stress_to_fr_inst(
        load_data['fine_time'], load_data['fine_stress'], MC_GROUPS, **params)
    assert np.allclose(load_data['spike_time'], spike_time)
    assert np.allclose(load_data['fr_inst'], fr_inst)