Franny Dean commited on
Commit
d2e9c9a
1 Parent(s): 2586962

gamma, rounding

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +2 -2
  2. app.py +2 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -815,7 +815,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, gamma):
815
  plt.xlim((0,250))
816
  #plt.title('Simulated PI-SSL LV Pressure Volume Loop', fontsize=16)
817
 
818
- return plt, ef_nolvad, new_ef, co_nolvad, CO
819
 
820
  title = "<h1 style='text-align: center; margin-bottom: 1rem'> Non-Invasive Medical Digital Twins using Physics-Informed Self-Supervised Learning </h1>"
821
 
@@ -887,7 +887,7 @@ with gr.Blocks() as demo:
887
  LVAD_button = gr.Button("Add LVAD")
888
 
889
  with gr.Row():
890
- gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed, ω(0)")
891
 
892
  with gr.Row():
893
  lvad = gr.Plot()
 
815
  plt.xlim((0,250))
816
  #plt.title('Simulated PI-SSL LV Pressure Volume Loop', fontsize=16)
817
 
818
+ return plt, round(ef_nolvad,2), round(new_ef,2), round(co_nolvad,2), round(CO, 2)
819
 
820
  title = "<h1 style='text-align: center; margin-bottom: 1rem'> Non-Invasive Medical Digital Twins using Physics-Informed Self-Supervised Learning </h1>"
821
 
 
887
  LVAD_button = gr.Button("Add LVAD")
888
 
889
  with gr.Row():
890
+ gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed parameter γ")
891
 
892
  with gr.Row():
893
  lvad = gr.Plot()
app.py CHANGED
@@ -815,7 +815,7 @@ def lvad_plots(Rm, Ra, Emax, Emin, Vd, Tc, start_v, gamma):
815
  plt.xlim((0,250))
816
  #plt.title('Simulated PI-SSL LV Pressure Volume Loop', fontsize=16)
817
 
818
- return plt, ef_nolvad, new_ef, co_nolvad, CO
819
 
820
  title = "<h1 style='text-align: center; margin-bottom: 1rem'> Non-Invasive Medical Digital Twins using Physics-Informed Self-Supervised Learning </h1>"
821
 
@@ -887,7 +887,7 @@ with gr.Blocks() as demo:
887
  LVAD_button = gr.Button("Add LVAD")
888
 
889
  with gr.Row():
890
- gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed, ω(0)")
891
 
892
  with gr.Row():
893
  lvad = gr.Plot()
 
815
  plt.xlim((0,250))
816
  #plt.title('Simulated PI-SSL LV Pressure Volume Loop', fontsize=16)
817
 
818
+ return plt, round(ef_nolvad,2), round(new_ef,2), round(co_nolvad,2), round(CO, 2)
819
 
820
  title = "<h1 style='text-align: center; margin-bottom: 1rem'> Non-Invasive Medical Digital Twins using Physics-Informed Self-Supervised Learning </h1>"
821
 
 
887
  LVAD_button = gr.Button("Add LVAD")
888
 
889
  with gr.Row():
890
+ gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed parameter γ")
891
 
892
  with gr.Row():
893
  lvad = gr.Plot()