Spaces:
Running
Running
Franny Dean
commited on
Commit
•
53a34c4
1
Parent(s):
a4c401d
more attempting
Browse files- .ipynb_checkpoints/app-checkpoint.py +6 -4
- app.py +6 -4
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -461,9 +461,11 @@ def pvloop_simulator(Rm, Ra, Emax, Emin, Vd, Tc, start_v, animation):
|
|
461 |
plt.xlim((0,250))
|
462 |
start = (N-2)*60000
|
463 |
end = (N-2)*60000+50000
|
464 |
-
|
465 |
-
|
466 |
-
|
|
|
|
|
467 |
|
468 |
plt.title('Predicted PI-SSL LV Pressure Volume Loop', fontsize=16)
|
469 |
#plt.rcParams['fig.suptitle'] = -2.0
|
@@ -481,7 +483,7 @@ def pvloop_simulator(Rm, Ra, Emax, Emin, Vd, Tc, start_v, animation):
|
|
481 |
y = pressures[start:end]
|
482 |
ax.plot(x, y, lw=1, c='b')
|
483 |
|
484 |
-
if
|
485 |
anim = animation.FuncAnimation(fig, partial(update), frames=43, interval=1)
|
486 |
anim.save("prediction.mp4")
|
487 |
|
|
|
461 |
plt.xlim((0,250))
|
462 |
start = (N-2)*60000
|
463 |
end = (N-2)*60000+50000
|
464 |
+
if animation:
|
465 |
+
line = ax.plot(volumes[start:(start+1)], pressures[start:(start+1)], lw=1, color='b')
|
466 |
+
point = ax.scatter(volumes[start:(start+1)], pressures[start:(start+1)], c="b", s=5)
|
467 |
+
else:
|
468 |
+
line = ax.plot(volumes[start:end], pressures[start:end], lw=1, color='b')
|
469 |
|
470 |
plt.title('Predicted PI-SSL LV Pressure Volume Loop', fontsize=16)
|
471 |
#plt.rcParams['fig.suptitle'] = -2.0
|
|
|
483 |
y = pressures[start:end]
|
484 |
ax.plot(x, y, lw=1, c='b')
|
485 |
|
486 |
+
if animation:
|
487 |
anim = animation.FuncAnimation(fig, partial(update), frames=43, interval=1)
|
488 |
anim.save("prediction.mp4")
|
489 |
|
app.py
CHANGED
@@ -461,9 +461,11 @@ def pvloop_simulator(Rm, Ra, Emax, Emin, Vd, Tc, start_v, animation):
|
|
461 |
plt.xlim((0,250))
|
462 |
start = (N-2)*60000
|
463 |
end = (N-2)*60000+50000
|
464 |
-
|
465 |
-
|
466 |
-
|
|
|
|
|
467 |
|
468 |
plt.title('Predicted PI-SSL LV Pressure Volume Loop', fontsize=16)
|
469 |
#plt.rcParams['fig.suptitle'] = -2.0
|
@@ -481,7 +483,7 @@ def pvloop_simulator(Rm, Ra, Emax, Emin, Vd, Tc, start_v, animation):
|
|
481 |
y = pressures[start:end]
|
482 |
ax.plot(x, y, lw=1, c='b')
|
483 |
|
484 |
-
if
|
485 |
anim = animation.FuncAnimation(fig, partial(update), frames=43, interval=1)
|
486 |
anim.save("prediction.mp4")
|
487 |
|
|
|
461 |
plt.xlim((0,250))
|
462 |
start = (N-2)*60000
|
463 |
end = (N-2)*60000+50000
|
464 |
+
if animation:
|
465 |
+
line = ax.plot(volumes[start:(start+1)], pressures[start:(start+1)], lw=1, color='b')
|
466 |
+
point = ax.scatter(volumes[start:(start+1)], pressures[start:(start+1)], c="b", s=5)
|
467 |
+
else:
|
468 |
+
line = ax.plot(volumes[start:end], pressures[start:end], lw=1, color='b')
|
469 |
|
470 |
plt.title('Predicted PI-SSL LV Pressure Volume Loop', fontsize=16)
|
471 |
#plt.rcParams['fig.suptitle'] = -2.0
|
|
|
483 |
y = pressures[start:end]
|
484 |
ax.plot(x, y, lw=1, c='b')
|
485 |
|
486 |
+
if animation:
|
487 |
anim = animation.FuncAnimation(fig, partial(update), frames=43, interval=1)
|
488 |
anim.save("prediction.mp4")
|
489 |
|