"""
Development code for the EEE project.
"""
import numpy as np; import matplotlib.pyplot as plt; import batch_analysis; import batch_utils; import os; plt.ion()
# Simulations
# params, data = batch_utils.load_batch(batchname)
# amp_output = batch_analysis.meas_batch_plat_amp(params, data, showwork=False)
# batch_analysis.plot_measure(amp_output, amp_output['params'], swapaxes=True)
# plt.ylim([0, 30])
# dur_output = batch_analysis.meas_batch_plat_dur(params, data, showwork=False)
# batch_analysis.plot_measure(dur_output, dur_output['params'], swapaxes=True)
# numspike_output = batch_analysis.meas_batch_num_spikes(params, data, showwork=False)
# batch_analysis.plot_measure(numspike_output, params, swapaxes=True)
# freq_output = batch_analysis.meas_batch_freq(params, data, showwork=False)
# batch_analysis.plot_measure(freq_output, params, swapaxes=True)
# tts_output = batch_analysis.meas_batch_time_to_spike(params, data, showwork=False)
# batch_analysis.plot_measure(tts_output, params, swapaxes=True)
# inter_output = batch_analysis.meas_batch_first_interspike(params, data, showwork=False)
# batch_analysis.plot_measure(inter_output, params, swapaxes=True)