fixing ax fig error
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ def read_result_from_hub(filename):
|
|
27 |
return local_path
|
28 |
|
29 |
def make_boundary_plot(boundary):
|
30 |
-
|
|
|
31 |
return boundary_plot
|
32 |
|
33 |
def make_interactive_plot(boundary):
|
@@ -89,10 +90,11 @@ def gradio_interface() -> gr.Blocks:
|
|
89 |
n_field_periods = gr.Number(label="Number of Period Fields", value=3)
|
90 |
generate_btn = gr.Button(value="Generate")
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
96 |
|
97 |
def update_ui(mode):
|
98 |
return (
|
|
|
27 |
return local_path
|
28 |
|
29 |
def make_boundary_plot(boundary):
|
30 |
+
boundary_ax = visualization.plot_boundary(boundary)
|
31 |
+
boundary_plot = boundary_ax.get_figure()
|
32 |
return boundary_plot
|
33 |
|
34 |
def make_interactive_plot(boundary):
|
|
|
90 |
n_field_periods = gr.Number(label="Number of Period Fields", value=3)
|
91 |
generate_btn = gr.Button(value="Generate")
|
92 |
|
93 |
+
with gr.Column(visible=True):
|
94 |
+
boundary_plot = gr.Plot()
|
95 |
+
interactive_plot = gr.Plot()
|
96 |
+
boozer_plot = gr.Plot()
|
97 |
+
flux_surface_plot = gr.Plot()
|
98 |
|
99 |
def update_ui(mode):
|
100 |
return (
|