From f29be9a4986aa442903b5fa6ee9d3c9c9018d80c Mon Sep 17 00:00:00 2001 From: leon-k-martin Date: Mon, 30 Sep 2024 16:25:07 +0200 Subject: [PATCH] Refactor WorkspaceComponent to add option for exporting bifurcation analysis code in Julia --- src/components/Workspace.tsx | 1 + tvb_ext_ontology/handlers.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Workspace.tsx b/src/components/Workspace.tsx index 50ee0d2..4a14be0 100644 --- a/src/components/Workspace.tsx +++ b/src/components/Workspace.tsx @@ -171,6 +171,7 @@ const WorkspaceComponent: React.FC = ({ onChange={e => setExportType(e.target.value)} > + diff --git a/tvb_ext_ontology/handlers.py b/tvb_ext_ontology/handlers.py index 0418cde..8e2745d 100644 --- a/tvb_ext_ontology/handlers.py +++ b/tvb_ext_ontology/handlers.py @@ -144,6 +144,8 @@ def post(self): if export_type == "py": onto_api.experiment.save_code(directory) LOGGER.info("Saved code") + elif export_type == "jl": + onto_api.experiment.save_model_bifurcation_analysis_code(directory) elif export_type == "xml": onto_api.experiment.save_model_specification(directory) LOGGER.info("Saved model specification") @@ -247,7 +249,7 @@ def construct_metadata(nodes_data): """ metadata = { "model": { - "label": custom_get(nodes_data, "model", "Generic2dOscillator"), + "name": custom_get(nodes_data, "model", "Generic2dOscillator"), "parameters": {}, }, "connectivity": {