Spaces:
Runtime error
Runtime error
Franny Dean
commited on
Commit
·
34172e3
1
Parent(s):
68f06e7
attempt to fix pressure
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -1
- app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -563,7 +563,7 @@ def f_nolvad(Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emin, Vd, Tc, start_v, Emax, showpv
|
|
563 |
sol = odeint(heart_ode0, y0, t, args = (Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emax, Emin, Tc,Vd)) #t: list of values
|
564 |
|
565 |
result_Vlv = np.array(sol[:, 0]) + Vd
|
566 |
-
result_Plv = np.array([Plv(v, Emax, Emin, xi, Tc, Vd) for xi,v in zip(t,sol[:, 0])])
|
567 |
|
568 |
#if showpvloop: plt.plot(result_Vlv[18*60000:20*60000], result_Plv[18*60000:20*60000], color='black', label='Without LVAD')
|
569 |
|
|
|
563 |
sol = odeint(heart_ode0, y0, t, args = (Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emax, Emin, Tc,Vd)) #t: list of values
|
564 |
|
565 |
result_Vlv = np.array(sol[:, 0]) + Vd
|
566 |
+
result_Plv = np.array([Plv(v+Vd, Emax, Emin, xi, Tc, Vd) for xi,v in zip(t,sol[:, 0])])
|
567 |
|
568 |
#if showpvloop: plt.plot(result_Vlv[18*60000:20*60000], result_Plv[18*60000:20*60000], color='black', label='Without LVAD')
|
569 |
|
app.py
CHANGED
@@ -563,7 +563,7 @@ def f_nolvad(Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emin, Vd, Tc, start_v, Emax, showpv
|
|
563 |
sol = odeint(heart_ode0, y0, t, args = (Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emax, Emin, Tc,Vd)) #t: list of values
|
564 |
|
565 |
result_Vlv = np.array(sol[:, 0]) + Vd
|
566 |
-
result_Plv = np.array([Plv(v, Emax, Emin, xi, Tc, Vd) for xi,v in zip(t,sol[:, 0])])
|
567 |
|
568 |
#if showpvloop: plt.plot(result_Vlv[18*60000:20*60000], result_Plv[18*60000:20*60000], color='black', label='Without LVAD')
|
569 |
|
|
|
563 |
sol = odeint(heart_ode0, y0, t, args = (Rs, Rm, Ra, Rc, Ca, Cs, Cr, Ls, Emax, Emin, Tc,Vd)) #t: list of values
|
564 |
|
565 |
result_Vlv = np.array(sol[:, 0]) + Vd
|
566 |
+
result_Plv = np.array([Plv(v+Vd, Emax, Emin, xi, Tc, Vd) for xi,v in zip(t,sol[:, 0])])
|
567 |
|
568 |
#if showpvloop: plt.plot(result_Vlv[18*60000:20*60000], result_Plv[18*60000:20*60000], color='black', label='Without LVAD')
|
569 |
|