Spaces:
Running
Running
frances-dean
commited on
Commit
•
ad9c3eb
1
Parent(s):
a7ce737
Update app.py
Browse files
app.py
CHANGED
@@ -457,7 +457,7 @@ def pvloop_simulator(Rm, Ra, Emax, Emin, Vd, Tc, start_v, animate=True, loop_sim
|
|
457 |
return vectorized_Plv(volume, Emax, Emin, t, Tc, Vd)
|
458 |
|
459 |
# calculate PRESSURE
|
460 |
-
pressures = pressure(t, volumes, init_Emax, init_Emin, Tc, init_Vd)
|
461 |
|
462 |
# Create the figure and the loop that we will manipulate
|
463 |
fig, ax = plt.subplots(figsize=(6, 4))
|
@@ -871,7 +871,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, beta, loop_simulated=True):
|
|
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)
|
|
|
457 |
return vectorized_Plv(volume, Emax, Emin, t, Tc, Vd)
|
458 |
|
459 |
# calculate PRESSURE
|
460 |
+
pressures = pressure(t, volumes, init_Emax, init_Emin, Tc, init_Vd)
|
461 |
|
462 |
# Create the figure and the loop that we will manipulate
|
463 |
fig, ax = plt.subplots(figsize=(6, 4))
|
|
|
871 |
|
872 |
if loop_simulated:
|
873 |
# plt.title('', fontsize=16)
|
874 |
+
anim = animation.FuncAnimation(fig, partial(update), frames=1000, 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)
|