Franny Dean commited on
Commit
68f06e7
1 Parent(s): d4dd864

try to fix lvad

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +5 -3
  2. app.py +5 -3
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -810,14 +810,16 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, gamma):
810
  print("EF before LVAD:", ef_nolvad)
811
  print("CO before LVAD:", co_nolvad)
812
  print("New EF after LVAD:", new_ef, "New CO:", CO, "New MAP:", MAP, "\n\n")
813
-
814
- plt.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
815
- plt.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
 
816
  plt.xlabel('LV volume (ml)')
817
  plt.ylabel('LV pressure (mmHg)')
818
  plt.legend(loc='upper left', framealpha=1)
819
  plt.ylim((0,220))
820
  plt.xlim((0,250))
 
821
 
822
  return plt
823
 
 
810
  print("EF before LVAD:", ef_nolvad)
811
  print("CO before LVAD:", co_nolvad)
812
  print("New EF after LVAD:", new_ef, "New CO:", CO, "New MAP:", MAP, "\n\n")
813
+
814
+ fig, ax = plt.subplots()
815
+ ax.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
816
+ ax.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
817
  plt.xlabel('LV volume (ml)')
818
  plt.ylabel('LV pressure (mmHg)')
819
  plt.legend(loc='upper left', framealpha=1)
820
  plt.ylim((0,220))
821
  plt.xlim((0,250))
822
+ #plt.title('Simulated PI-SSL LV Pressure Volume Loop', fontsize=16)
823
 
824
  return plt
825
 
app.py CHANGED
@@ -810,14 +810,16 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, gamma):
810
  print("EF before LVAD:", ef_nolvad)
811
  print("CO before LVAD:", co_nolvad)
812
  print("New EF after LVAD:", new_ef, "New CO:", CO, "New MAP:", MAP, "\n\n")
813
-
814
- plt.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
815
- plt.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
 
816
  plt.xlabel('LV volume (ml)')
817
  plt.ylabel('LV pressure (mmHg)')
818
  plt.legend(loc='upper left', framealpha=1)
819
  plt.ylim((0,220))
820
  plt.xlim((0,250))
 
821
 
822
  return plt
823
 
 
810
  print("EF before LVAD:", ef_nolvad)
811
  print("CO before LVAD:", co_nolvad)
812
  print("New EF after LVAD:", new_ef, "New CO:", CO, "New MAP:", MAP, "\n\n")
813
+
814
+ fig, ax = plt.subplots()
815
+ ax.plot(Vlv0, Plv0, color='blue', label='No LVAD') #blue
816
+ ax.plot(Vlvs, Plvs, color=(78/255, 192/255, 44/255), label=f"LVAD, ω(0)= {round(w0,2)}r/min") #green
817
  plt.xlabel('LV volume (ml)')
818
  plt.ylabel('LV pressure (mmHg)')
819
  plt.legend(loc='upper left', framealpha=1)
820
  plt.ylim((0,220))
821
  plt.xlim((0,250))
822
+ #plt.title('Simulated PI-SSL LV Pressure Volume Loop', fontsize=16)
823
 
824
  return plt
825