本文整理汇总了Python中pypet.Environment.f_pipeline方法的典型用法代码示例。如果您正苦于以下问题:Python Environment.f_pipeline方法的具体用法?Python Environment.f_pipeline怎么用?Python Environment.f_pipeline使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pypet.Environment
的用法示例。
在下文中一共展示了Environment.f_pipeline方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from pypet import Environment [as 别名]
# 或者: from pypet.Environment import f_pipeline [as 别名]
def main():
env = Environment(trajectory='FiringRatePipeline',
comment='Experiment to measure the firing rate '
'of a leaky integrate and fire neuron. '
'Exploring different input currents, '
'as well as refractory periods',
add_time=False, # We don't want to add the current time to the name,
log_folder='./logs/',
log_level=logging.INFO,
log_stdout=True,
multiproc=True,
ncores=2, #My laptop has 2 cores ;-)
filename='./hdf5/', # We only pass a folder here, so the name is chosen
# automatically to be the same as the Trajectory
)
env.f_pipeline(mypipeline)
示例2: main
# 需要导入模块: from pypet import Environment [as 别名]
# 或者: from pypet.Environment import f_pipeline [as 别名]
def main():
filename = os.path.join('hdf5', 'FiringRate.hdf5')
env = Environment(trajectory='FiringRatePipeline',
comment='Experiment to measure the firing rate '
'of a leaky integrate and fire neuron. '
'Exploring different input currents, '
'as well as refractory periods',
add_time=False, # We don't want to add the current time to the name,
log_stdout=True,
multiproc=True,
ncores=2, #My laptop has 2 cores ;-)
filename=filename,
overwrite_file=True)
env.f_pipeline(mypipeline)
# Finally disable logging and close all log-files
env.f_disable_logging()