Skip to content

Commit

Permalink
Refactor WorkspaceComponent to add option for exporting bifurcation a…
Browse files Browse the repository at this point in the history
…nalysis code in Julia
  • Loading branch information
leon-k-martin committed Sep 30, 2024
1 parent 6c5e037 commit f29be9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ const WorkspaceComponent: React.FC<IWorkspaceProps> = ({
onChange={e => setExportType(e.target.value)}
>
<option value="py">Simulation code (.py)</option>
<option value="jl">Bifurcation analysis (.jl)</option>
<option value="xml">Model specification (.xml)</option>
<option value="yaml">Metadata (.yaml)</option>
</select>
Expand Down
4 changes: 3 additions & 1 deletion tvb_ext_ontology/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit f29be9a

Please sign in to comment.