Skip to content

Commit 5dea291

Browse files
authored
Merge pull request #613 from MetaCell/feature/518
#518 fix: Fix "Save to json" ignored options
2 parents ca88040 + f9ed407 commit 5dea291

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ def exportModel(self, args):
602602
if not args['netCells']:
603603
sim.initialize(netParams=self.netParams, simConfig=self.simConfig)
604604
sim.cfg.filename = args['fileName']
605-
include = [el for el in specs.SimConfig().saveDataInclude if el in args.keys() and args[el]]
605+
sim_config_data_include = specs.SimConfig().saveDataInclude
606+
include = [el for el in sim_config_data_include if args.get(el, False)]
606607
if args['netCells']: include += ['netPops']
607608
sim.cfg.saveJson = True
608609
sim.saveData(include)

webapp/components/topbar/dialogs/SaveFile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ const saveOptions = [
1515
{
1616
label: 'High-level Network Parameters (netParams)',
1717
label2: 'Cell rules, connectivity rules, etc',
18-
state: 'loadNetParams',
18+
state: 'netParams',
1919
},
2020
{
2121
label: 'Simulation Configuration (simConfig)',
2222
label2: 'duration, recorded variables, etc',
23-
state: 'loadSimCfg',
23+
state: 'simConfig',
2424
},
2525
{
2626
label: 'Instantiated Network',
2727
label2: 'All cells, connections, etc',
28-
state: 'loadNet',
28+
state: 'netCells',
2929
},
3030
{
3131
label: 'Simulation Data',
3232
label2: 'Spikes, traces, etc',
33-
state: 'loadSimData',
33+
state: 'simData',
3434
},
3535
];
3636

0 commit comments

Comments
 (0)