From 89c492dd6ce87d28966c01fe12b5d4d8c20dc393 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 6 Aug 2024 10:53:09 +0300 Subject: [PATCH] progress without progress --- Model.py | 2 +- __pycache__/Model.cpython-311.pyc | Bin 15368 -> 15362 bytes fitter.py | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Model.py b/Model.py index 4eb6ced..50010aa 100644 --- a/Model.py +++ b/Model.py @@ -349,7 +349,7 @@ class Model: FCa_0, # FCa ] - def calculated_current(self, states, t, V): + def calculated_current(self, states, V): ICaL = self.gCaL * states[1, :] * (V - self.ECaL) return ICaL diff --git a/__pycache__/Model.cpython-311.pyc b/__pycache__/Model.cpython-311.pyc index 51c2fda148916176e7ea5cadc4ec0247c6b3ec02..21ab7463c5fcfe233f721626b24df5d9b809e6a6 100644 GIT binary patch delta 91 zcmeCEXsX~{&dbZi00f;^H>Ta*$eX6g$UM13(@~PCh9Qd)Bmn|dKqXbI3=Fl*HO!OG iX^Km;6nOxJiy}ZoHjuc*;^~~|Q_KQnZf4VB5&{6|EEA6a delta 96 zcmZpw=&0ab&dbZi00fUNZA`njkvC0~k!5m;rlTZt4MP?qNCE_^fJ&-Z85n9=YFH+p l(-c=^E%E>g7e#=Ga1fCVByO>IIw$%R1JyAoY|>&90sv;b6xIL$ diff --git a/fitter.py b/fitter.py index 7fd5a0b..de85aa7 100644 --- a/fitter.py +++ b/fitter.py @@ -42,7 +42,7 @@ class Fitter: return current k = np.zeros(current.size) - k[k.size // 2:] = np.exp(-np.arange(k.size // 2) / np.abs(tau)) + k[k.size // 2 :] = np.exp(-np.arange(k.size // 2) / np.abs(tau)) k /= k.sum() if tau > 0: @@ -65,13 +65,13 @@ class Fitter: times=self.time_points, tspan=self.tspan, dt=self.dt, - initial_values=self.initial_values + initial_values=self.initial_values, ) states = self.initial_values t = [0, 1000] V = model.mem_potential(t) - _calc_curr = model.calculated_current(states, t, V) + _calc_curr = model.calculated_current(states, V) calculated_current = ( self.convolve_current(_calc_curr, tau=tau_RC)[self.current_time_indecies] + offset @@ -153,7 +153,7 @@ class Fitter: initial_values=self.initial_values, tspan=self.tspan, dt=self.dt, - times=self.time_points + times=self.time_points, ) _calc_curr = model.calculated_current()