本文整理汇总了Python中pypet.trajectory.Trajectory._run_information[run_name]['completed']方法的典型用法代码示例。如果您正苦于以下问题:Python Trajectory._run_information[run_name]['completed']方法的具体用法?Python Trajectory._run_information[run_name]['completed']怎么用?Python Trajectory._run_information[run_name]['completed']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pypet.trajectory.Trajectory
的用法示例。
在下文中一共展示了Trajectory._run_information[run_name]['completed']方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_f_is_completed
# 需要导入模块: from pypet.trajectory import Trajectory [as 别名]
# 或者: from pypet.trajectory.Trajectory import _run_information[run_name]['completed'] [as 别名]
def test_f_is_completed(self):
traj = Trajectory()
traj.f_add_parameter('test', 42)
traj.f_explore({'test':[1,2,3,4]})
self.assertFalse(traj.f_is_completed())
for run_name in traj.f_get_run_names():
self.assertFalse(traj.f_is_completed(run_name))
traj._run_information[traj.f_idx_to_run(1)]['completed']=1
self.assertFalse(traj.f_is_completed())
self.assertTrue(traj.f_is_completed(1))
for run_name in traj.f_get_run_names():
traj._run_information[run_name]['completed']=1
self.assertTrue(traj.f_is_completed())
for run_name in traj.f_get_run_names():
self.assertTrue(traj.f_is_completed(run_name))