Пример #1
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)
Пример #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)
Пример #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)
Пример #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)
Пример #5
0
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)
Пример #6
0
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)