fit bursties and tests
This commit is contained in:
parent
d100524e84
commit
05c808e90b
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
for file in data/invivo/*; do
|
for file in data/invivo_bursty/*; do
|
||||||
if [ -d "$file" ]; then
|
if [ -d "$file" ]; then
|
||||||
nice python3 run_Fitter.py --cell $file
|
nice python3 run_Fitter.py --cell $file
|
||||||
fi
|
fi
|
||||||
|
10
test.py
10
test.py
@ -16,13 +16,15 @@ from scipy.optimize import curve_fit
|
|||||||
from scipy.signal import find_peaks
|
from scipy.signal import find_peaks
|
||||||
from thunderfish.eventdetection import threshold_crossing_times, threshold_crossings, detect_peaks
|
from thunderfish.eventdetection import threshold_crossing_times, threshold_crossings, detect_peaks
|
||||||
|
|
||||||
|
folder = "./results/invivo_results/2010-11-08-al-invivo-1/"
|
||||||
|
|
||||||
|
for item in os.listdir(folder):
|
||||||
|
fit_path = os.path.join(folder, item)
|
||||||
|
|
||||||
cells = ["data/invivo/2013-04-16-ad-invivo-1", "data/invivo/2014-01-16-aj-invivo-1", "data/invivo/2015-01-20-ad-invivo-1", "data/invivo_bursty/2012-05-07-aa-invivo-1"]
|
fit = ModelFit(fit_path)
|
||||||
|
print(fit.get_fit_routine_error())
|
||||||
|
# fit.generate_master_plot()
|
||||||
|
|
||||||
for cell in cells:
|
|
||||||
data = CellData(cell)
|
|
||||||
print(len(data.get_base_traces(CellData.V1)))
|
|
||||||
|
|
||||||
quit()
|
quit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user