本文整理汇总了Python中context.Context.step_simulation方法的典型用法代码示例。如果您正苦于以下问题:Python Context.step_simulation方法的具体用法?Python Context.step_simulation怎么用?Python Context.step_simulation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类context.Context
的用法示例。
在下文中一共展示了Context.step_simulation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
# 需要导入模块: from context import Context [as 别名]
# 或者: from context.Context import step_simulation [as 别名]
# connect BCM thresh to GCM sum
# TODO: this is maybe where relative names would be nice...
s.connect(['$name == "thresh"'],
['$name == "sum"'])
# Re-initialize entire circuit
s.init_simulation()
#s.focus.show_cg()
# step the network a few times to 'prime' things
prime_steps = 50
for i in range(prime_steps):
print 'priming:', i+1, '/', prime_steps
s.step_simulation()
# prepare plotting stuff
s.set_focus('root')
s.set_focus('$name == "stimulus"')
stim = s.focus
s.set_focus('root')
bcms = s.focus.filter_nodes(C(['$name == "BCM"']))