Skip to content

Commit c378516

Browse files
committed
add stim source for sync
1 parent b7d98c7 commit c378516

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def rename(self, path, oldValue,newValue):
345345
with redirect_stdout(sys.__stdout__):
346346
if "popParams" in path:
347347
self.propagate_field_rename("pop", newValue, oldValue)
348+
elif "stimSourceParams" in path:
349+
self.propagate_field_rename("source", newValue, oldValue)
348350

349351
return 1
350352

@@ -449,6 +451,8 @@ def deleteParam(self, model, label):
449451
getattr(self.netParams, model).pop(label)
450452
if "popParams" in model:
451453
self.propagate_field_rename("pop", None, label)
454+
elif "stimSourceParams" in model:
455+
self.propagate_field_rename("source", None, label)
452456
return True
453457
except:
454458
return False

0 commit comments

Comments
 (0)