diff --git a/tests/generalTests.py b/tests/generalTests.py index 8518a7c..cb45b48 100644 --- a/tests/generalTests.py +++ b/tests/generalTests.py @@ -272,6 +272,20 @@ if __name__ == '__main__': # 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() # time_test_function() # test_cell_data() diff --git a/tests/test.py b/tests/test.py new file mode 100644 index 0000000..615a774 --- /dev/null +++ b/tests/test.py @@ -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) \ No newline at end of file