Spaces:
Running
Running
frances-dean
commited on
Commit
•
e6e9110
1
Parent(s):
2b1f2e8
Update app.py
Browse files
app.py
CHANGED
@@ -800,7 +800,7 @@ def generate_example():
|
|
800 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
801 |
|
802 |
|
803 |
-
def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=
|
804 |
|
805 |
ncycle = 10000
|
806 |
|
@@ -871,7 +871,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=False):
|
|
871 |
|
872 |
if loop_simulated:
|
873 |
# plt.title('', fontsize=16)
|
874 |
-
anim = animation.FuncAnimation(fig, partial(update), frames=
|
875 |
anim.save("simulated_lvad.mp4")
|
876 |
anim_plot = "simulated_lvad.mp4"
|
877 |
return anim_plot, round(ef_nolvad,2), round(new_ef,2), round(co_nolvad,2), round(CO, 2)
|
|
|
800 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
801 |
|
802 |
|
803 |
+
def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
804 |
|
805 |
ncycle = 10000
|
806 |
|
|
|
871 |
|
872 |
if loop_simulated:
|
873 |
# plt.title('', fontsize=16)
|
874 |
+
anim = animation.FuncAnimation(fig, partial(update), frames=100, interval=30)
|
875 |
anim.save("simulated_lvad.mp4")
|
876 |
anim_plot = "simulated_lvad.mp4"
|
877 |
return anim_plot, round(ef_nolvad,2), round(new_ef,2), round(co_nolvad,2), round(CO, 2)
|