Example #1
0
 def _run(self):
     """returns a list of pathlib.Paths. """
     data, paths = ephys_passive.PassiveChoiceWorld(
         self.session_path).extract(save=True)
     if any([x is None for x in paths]):
         self.status = -1
     # Register?
     return paths
Example #2
0
 def test_task_extraction_files(self):
     ext = ephys_passive.PassiveChoiceWorld(self.session_path)
     data, paths = ext.extract(save=True)
     path_names = [x.name for x in paths]
     expected = [
         "_ibl_passivePeriods.intervalsTable.csv",
         "_ibl_passiveRFM.times.npy",
         "_ibl_passiveGabor.table.csv",
         "_ibl_passiveStims.table.csv",
     ]
     self.assertTrue(all([x in path_names for x in expected]))
Example #3
0
 def test_task_extraction(self):
     ext = ephys_passive.PassiveChoiceWorld(self.session_path)
     data, paths = ext.extract()
     self.assertTrue(len(data) == 4)
     self.assertTrue(paths is None)