add simple hand tests
This commit is contained in:
parent
cc526251a5
commit
043303228e
@ -272,6 +272,20 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
# quit()
|
# quit()
|
||||||
|
|
||||||
|
model_parameters = {'v_offset': -15.234375, 'input_scaling': 64.94152780134829, 'step_size': 5e-05, 'a_zero': 2,
|
||||||
|
'threshold': 1, 'v_base': 0, 'delta_a': 0.04763179657857666, 'tau_a': 0.07891848949732623,
|
||||||
|
'mem_tau': 0.004828473985707999, 'noise_strength': 0.017132801387559883,
|
||||||
|
'v_zero': 0, 'dend_tau': 0.0015230454266819539}
|
||||||
|
|
||||||
|
model = LifacNoiseModel(model_parameters)
|
||||||
|
|
||||||
|
base = get_baseline_class(model, 650)
|
||||||
|
base.plot_baseline()
|
||||||
|
fi = get_fi_curve_class(model, np.arange(0, 2, 0.2), 650)
|
||||||
|
fi.plot_fi_curve()
|
||||||
|
|
||||||
|
quit()
|
||||||
|
|
||||||
# test_baseline_polar_plot()
|
# test_baseline_polar_plot()
|
||||||
# time_test_function()
|
# time_test_function()
|
||||||
# test_cell_data()
|
# test_cell_data()
|
||||||
|
19
tests/test.py
Normal file
19
tests/test.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import pyrelacs.DataLoader as Dl
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import numpy as np
|
||||||
|
from DataParserFactory import get_parser
|
||||||
|
import pprint
|
||||||
|
|
||||||
|
|
||||||
|
base_path = "../data/2012-06-27-an-invivo-1"
|
||||||
|
fi_file = base_path + "/fispikes1.dat"
|
||||||
|
baseline_file = base_path + "/basespikes1.dat"
|
||||||
|
sam_file = base_path + "/samallspikes1.dat"
|
||||||
|
stimuli_file = base_path + "/stimuli.dat"
|
||||||
|
|
||||||
|
parser = get_parser(base_path)
|
||||||
|
|
||||||
|
spiketimes, contrasts, delta_fs, eod_freqs, durations, trans_amplitudes = parser.__get_sam_spiketimes__()
|
||||||
|
|
||||||
|
|
||||||
|
print(eod_freqs)
|
Loading…
Reference in New Issue
Block a user