Spaces:
Sleeping
Sleeping
frances-dean
commited on
Commit
•
ebc4aae
1
Parent(s):
d506051
Update app.py
Browse files
app.py
CHANGED
@@ -859,7 +859,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
859 |
def update(frame):
|
860 |
|
861 |
# update to add more of the loop
|
862 |
-
end = (N-2)*60000+
|
863 |
#x = Vlv0[start:end]
|
864 |
#y = Plv0[start:end]
|
865 |
x2 = Vlvs[start:end]
|
@@ -873,7 +873,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
873 |
|
874 |
if loop_simulated:
|
875 |
# plt.title('', fontsize=16)
|
876 |
-
anim = animation.FuncAnimation(fig, partial(update), frames=
|
877 |
anim.save("simulated_lvad.mp4")
|
878 |
anim_plot = "simulated_lvad.mp4"
|
879 |
return anim_plot, round(ef_nolvad,2), round(new_ef,2), round(co_nolvad,2), round(CO, 2)
|
|
|
859 |
def update(frame):
|
860 |
|
861 |
# update to add more of the loop
|
862 |
+
end = (N-2)*60000+800 * frame
|
863 |
#x = Vlv0[start:end]
|
864 |
#y = Plv0[start:end]
|
865 |
x2 = Vlvs[start:end]
|
|
|
873 |
|
874 |
if loop_simulated:
|
875 |
# plt.title('', fontsize=16)
|
876 |
+
anim = animation.FuncAnimation(fig, partial(update), frames=110, interval=30)
|
877 |
anim.save("simulated_lvad.mp4")
|
878 |
anim_plot = "simulated_lvad.mp4"
|
879 |
return anim_plot, round(ef_nolvad,2), round(new_ef,2), round(co_nolvad,2), round(CO, 2)
|