Exemple #1
0
	def get_experiment(self):
		""" Looks for a file for this run
		"""
		design_file = ".".join(
			[self.subject_id, self.day_num, self.run_num,"txt"])
		self.design_file = os.path.join(design_dir,design_file)
		
		if not os.path.exists(self.design_file):
			if self.experimental_deadlines:
				raise ValueError("No design file exists")
			block_deadlines = self.get_rt_deadlines()
			self.blocks = create_full_experiment(block_deadlines)
		else:
			self.blocks = design_parse(self.design_file)
Exemple #2
0
	def multitrial():
		results = []
		blocks = create_full_experiment([0.3, 0.2, 0.4, 0.5])
		for block in blocks:
			results += yield cross_block(block,training=True)
		viztask.returnValue(results)