Franny Dean commited on
Commit
dde5c67
1 Parent(s): 5b91528

move plot order

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +8 -2
  2. app.py +8 -2
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -884,6 +884,9 @@ with gr.Blocks() as demo:
884
  sl5 = gr.Slider(4.0, 25.0, value= 4.0, label="Vd (ml)")
885
  sl6 = gr.Slider(0.4, 1.7, value= 0.4, label="Tc (s)")
886
  sl7 = gr.Slider(0.0, 280.0, value= 140., label="start_v (ml)")
 
 
 
887
 
888
  gr.Markdown(description2)
889
 
@@ -891,11 +894,14 @@ with gr.Blocks() as demo:
891
 
892
  with gr.Row():
893
  gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed, ω(0)")
 
 
 
894
 
895
  generate_button.click(fn=generate_example, outputs = [video,plot,Rm,Ra,Emax,Emin,Vd,Tc,start_v])
896
 
897
- simulation_button.click(fn=pvloop_simulator_plot_only, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7], outputs = [gr.Plot()])
898
 
899
- LVAD_button.click(fn=lvad_plots, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7,gamma], outputs = [gr.Plot()])
900
 
901
  demo.launch()
 
884
  sl5 = gr.Slider(4.0, 25.0, value= 4.0, label="Vd (ml)")
885
  sl6 = gr.Slider(0.4, 1.7, value= 0.4, label="Tc (s)")
886
  sl7 = gr.Slider(0.0, 280.0, value= 140., label="start_v (ml)")
887
+
888
+ with gr.Row():
889
+ simulation = gr.Plot()
890
 
891
  gr.Markdown(description2)
892
 
 
894
 
895
  with gr.Row():
896
  gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed, ω(0)")
897
+
898
+ with gr.Row():
899
+ lvad = gr.Plot()
900
 
901
  generate_button.click(fn=generate_example, outputs = [video,plot,Rm,Ra,Emax,Emin,Vd,Tc,start_v])
902
 
903
+ simulation_button.click(fn=pvloop_simulator_plot_only, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7], outputs = [simulation])
904
 
905
+ LVAD_button.click(fn=lvad_plots, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7,gamma], outputs = [lvad])
906
 
907
  demo.launch()
app.py CHANGED
@@ -884,6 +884,9 @@ with gr.Blocks() as demo:
884
  sl5 = gr.Slider(4.0, 25.0, value= 4.0, label="Vd (ml)")
885
  sl6 = gr.Slider(0.4, 1.7, value= 0.4, label="Tc (s)")
886
  sl7 = gr.Slider(0.0, 280.0, value= 140., label="start_v (ml)")
 
 
 
887
 
888
  gr.Markdown(description2)
889
 
@@ -891,11 +894,14 @@ with gr.Blocks() as demo:
891
 
892
  with gr.Row():
893
  gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed, ω(0)")
 
 
 
894
 
895
  generate_button.click(fn=generate_example, outputs = [video,plot,Rm,Ra,Emax,Emin,Vd,Tc,start_v])
896
 
897
- simulation_button.click(fn=pvloop_simulator_plot_only, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7], outputs = [gr.Plot()])
898
 
899
- LVAD_button.click(fn=lvad_plots, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7,gamma], outputs = [gr.Plot()])
900
 
901
  demo.launch()
 
884
  sl5 = gr.Slider(4.0, 25.0, value= 4.0, label="Vd (ml)")
885
  sl6 = gr.Slider(0.4, 1.7, value= 0.4, label="Tc (s)")
886
  sl7 = gr.Slider(0.0, 280.0, value= 140., label="start_v (ml)")
887
+
888
+ with gr.Row():
889
+ simulation = gr.Plot()
890
 
891
  gr.Markdown(description2)
892
 
 
894
 
895
  with gr.Row():
896
  gamma = gr.Slider(1.0, 2.0, value= 1.4, label="Pump speed, ω(0)")
897
+
898
+ with gr.Row():
899
+ lvad = gr.Plot()
900
 
901
  generate_button.click(fn=generate_example, outputs = [video,plot,Rm,Ra,Emax,Emin,Vd,Tc,start_v])
902
 
903
+ simulation_button.click(fn=pvloop_simulator_plot_only, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7], outputs = [simulation])
904
 
905
+ LVAD_button.click(fn=lvad_plots, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7,gamma], outputs = [lvad])
906
 
907
  demo.launch()