Commit 47e42f2b authored by Duggan, John's avatar Duggan, John
Browse files

Fix plot.json editor and prepare for deployment

parent dd7daced
Loading
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -22,9 +22,6 @@ class PlotFastran:
        self.input_params = input_params

    def load_fastran(self, fn_ncfile: Path) -> None:
        print(fn_ncfile)  # TODO: remove
        fn_ncfile = Path("test.nc")  # TODO: remove

        self.fastran = netCDF4.Dataset(fn_ncfile, "r", format="NETCDF4")
        self.basename = os.path.basename(fn_ncfile)

+1 −1
Original line number Diff line number Diff line
@@ -30,5 +30,5 @@ class TabContentPanel:
                            ResourcesTab()
                        with vuetify.VWindowItem(value=2):
                            ExecutionTab()
                        with vuetify.VWindowItem(value=3, classes="h-100", eager=True):
                        with vuetify.VWindowItem(value=3, classes="h-100"):
                            ResultsTab(self.view_model)
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ class ResultsTab:
                    InputField("config.result_file", items=("config.result_files",), type="autocomplete")
                    vuetify.VBtn("Render Data", click=self.view_model.update_figure)
                code.Editor(
                    ref="plot_config",
                    model_value=("plot_json",),
                    classes="flex-1-0 h-100 w-100",
                    language="json",
+8 −1
Original line number Diff line number Diff line
@@ -17,4 +17,11 @@ class TabsPanel:
            vuetify.VTab("IPS Fastran Configuration", value=0)
            vuetify.VTab("Run Configuration", value=1)
            vuetify.VTab("Job Execution", value=2)
            vuetify.VTab("Results", value=3, disabled=("state.results_disabled",))
            vuetify.VTab(
                "Results",
                value=3,
                disabled=("state.results_disabled",),
                # Monaco requires this when the editor isn't in the initial view.
                # plot_config corresponds to the ref passed to code.Editor
                click="window.trame.refs.plot_config.editor.layout();",
            )