Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5007433
#523 refactor main bootstrap logic
filippomc May 27, 2022
91bbe60
#523 Improve experiments reload and polling logic
filippomc May 30, 2022
a5fe127
#523 Fixed edit experiment updates
filippomc May 30, 2022
bbf8386
#523 Improve edit experiment updates
filippomc May 30, 2022
1b3b362
Add animated init splash
filippomc May 30, 2022
86dc2ce
#537 Add support to simConfig params in batches
filippomc May 31, 2022
49aa56f
chore: clean up ejs template
filippomc May 31, 2022
8aa718d
#523 move params update from worker
filippomc May 31, 2022
36cb7d4
Experiment date view and sorting
filippomc May 31, 2022
fa05cb0
Add help text to experiment fields
filippomc May 31, 2022
9ff519e
#522 add support for func fields in batches
filippomc May 31, 2022
b2b8bd4
Update yarn.lock
filippomc May 31, 2022
9b6567c
#522 add support for func fields in batches
filippomc May 31, 2022
0887b3d
Some cleaning and small refactoring
filippomc May 31, 2022
63fdb76
#523 fix edit experiment regression
filippomc May 31, 2022
a08f587
Small refactor on theming parameters
filippomc May 31, 2022
4e9fc18
#538 #537 not metadata params in the exp manager
filippomc May 31, 2022
8860a4a
Fix typo
filippomc May 31, 2022
d77205c
#538 #537 fix list types in experiment definition
filippomc May 31, 2022
c634e45
Update lock file
filippomc May 31, 2022
2aeb4d5
Fix controlled capability error
filippomc Jun 1, 2022
9383a32
Removed error logic in batch experiments flow
filippomc Jun 1, 2022
898acf4
Merge branch 'development' of github.com:MetaCell/NetPyNE-UI into fea…
filippomc Jun 1, 2022
38b647d
Fix logic on single batch simulation
filippomc Jun 1, 2022
9bc2836
Fix Python console
filippomc Jun 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netpyne_ui/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def edit_experiment(name: str, experiment: dict):

if exp.state != model.ExperimentState.DESIGN:
raise ExperimentsError(
f"Can only edit experiment in f{model.ExperimentState.DESIGN} state"
f"Can only edit experiment in {model.ExperimentState.DESIGN} state"
)

updated_exp = from_dict(model.Experiment, experiment)
Expand Down
8 changes: 4 additions & 4 deletions netpyne_ui/netpyne_geppetto.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def getData(self):
def getModelAsJson(self):
# TODO: netpyne should offer a method asJSON (#240)
# that returns the JSON model without dumping to to disk.
obj = netpyne_utils.replaceFuncObj(self.netParams.__dict__)
obj = netpyne_utils.replaceFuncObj({"netParams": self.netParams.__dict__, "simConfig": self.simConfig.__dict__})
obj = netpyne_utils.replaceDictODict(obj)
return obj

Expand Down Expand Up @@ -218,7 +218,7 @@ def simulate_experiment_trials(self, experiment: model.Experiment):
else:
message = f"Experiment {experiment.name} finished, you can view the results in the Experiment Manager."

return utils.getJSONError(message, "")
return dict(message=message)

def simulate_single_model(self, experiment: model.Experiment = None, use_prev_inst: bool = False):
if experiment:
Expand All @@ -235,7 +235,7 @@ def simulate_single_model(self, experiment: model.Experiment = None, use_prev_in
if self.run_config.asynchronous:
message = "Experiment is pending! " \
f"Results will be stored in your workspace at ./{os.path.join(constants.EXPERIMENTS_FOLDER, experiment.name)}"
return utils.getJSONError(message, "")
return dict(message=message)
else:
sim.load(f'{constants.MODEL_OUTPUT_FILENAME}.json')
self.geppetto_model = self.model_interpreter.getGeppettoModel(sim)
Expand Down Expand Up @@ -374,7 +374,7 @@ def _prepare_batch_files(self, experiment: model.Experiment) -> str:
exp.params = self.experiments.process_params(exp.params)

netParams = copy.deepcopy(self.netParams)
netParams.mapping = {p.mapsTo: p.mapsTo.split('.') for p in exp.params}
netParams.mapping = {p.mapsTo.replace('netParams.', ''): p.mapsTo.split('.')[1::] for p in exp.params if 'netParams' in p.mapsTo}

simCfg = copy.copy(self.simConfig)
simCfg.saveJson = True
Expand Down
4 changes: 2 additions & 2 deletions netpyne_ui/templates/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def run_batch(experiment):
params = specs.ODict()
grouped_params = []
for param in experiment["params"]:
params[param["mapsTo"]] = param["values"]
params[param["mapsTo"].replace("simConfig.", "")] = param["values"]
if param["inGroup"]:
grouped_params.append(param["mapsTo"])
grouped_params.append(param["mapsTo"].replace("simConfig.", ""))

with open("netParams.json", "r") as f:
net_params = json.load(f)
Expand Down
2 changes: 1 addition & 1 deletion netpyne_ui/templates/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def run_sim():
print("Experiment failed ...")
print(e)

update_state(exp, "ERRROR")
update_state(exp, "ERROR")
sys.exit(1)
313 changes: 0 additions & 313 deletions package-lock.json

This file was deleted.

1 change: 1 addition & 0 deletions webapp/GeppettoConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"embedderURL": ["/"],
"rootRedirect":"",
"noTest": false,
"customSplash": "geppetto/build/static/splash.gif",
"extensions": {
"geppetto-default/ComponentsInitialization": false,
"geppetto-netpyne/ComponentsInitialization": true
Expand Down
Loading