def __init__(self): T1O8 = Trial("T1O8", Data.T1O8()) T2O1 = Trial("T2O1", Data.T2O1()) T3O6 = Trial("T3O6", Data.T3O6()) T4O3 = Trial("T4O3", Data.T4O3()) T5O5 = Trial("T5O5", Data.T5O5()) T6O2 = Trial("T6O2", Data.T6O2()) T7O4 = Trial("T7O4", Data.T7O4()) T8O9 = Trial("T8O9", Data.T8O9()) T9O7 = Trial("T9O7", Data.T9O7()) T10O10 = Trial("T10O10", Data.T10O10()) self._data = [T1O8.data(), T2O1.data(), T3O6.data(), T4O3.data(), T5O5.data(), T6O2.data(), T7O4.data(), T8O9.data(), T9O7.data(), T10O10.data()] self._trial_list = [T1O8, T2O1, T3O6, T4O3, T5O5, T6O2, T7O4, T8O9, T9O7, T10O10] self._nmb_odors = 10 self._nmb_data_per_trial = 1000 self._nmb_trials = 10
return "medium" if (self._odor == 6 or self._odor == 3 or self._odor == 4 or self._odor == 10): return "low" def set_total_spikes(self, sum): self._total_spikes = sum def get_total_spikes(self): return self._total_spikes T1O8 = Trial("T1O8", Data.T1O8()) T2O1 = Trial("T2O1", Data.T2O1()) T3O6 = Trial("T3O6", Data.T3O6()) T4O3 = Trial("T4O3", Data.T4O3()) T5O5 = Trial("T5O5", Data.T5O5()) T6O2 = Trial("T6O2", Data.T6O2()) T7O4 = Trial("T7O4", Data.T7O4()) T8O9 = Trial("T8O9", Data.T8O9()) T9O7 = Trial("T9O7", Data.T9O7()) T10O10 = Trial("T10O10", Data.T10O10()) data = [T1O8.data(), T2O1.data(), T3O6.data(), T4O3.data(), T5O5.data(), T6O2.data(), T7O4.data(), T8O9.data(), T9O7.data(), T10O10.data()] trial_list = [T1O8, T2O1, T3O6, T4O3, T5O5, T6O2, T7O4, T8O9, T9O7, T10O10] def trial_matrix(trial_list): array = [[] for i in range(nmb_trials)] c = 0 for trial in trial_list: for i in range(nmb_trials): if trial.odor() == i+1: