Beispiel #1
0
 def test_task_names_extractors(self):
     """
     This is to test against regressions
     """
     task_out = [
         ('_iblrig_tasks_biasedChoiceWorld3.7.0',
          'Behavior training/tasks'),
         ('_iblrig_tasks_biasedScanningChoiceWorld5.2.3',
          'Behavior training/tasks'),
         ('_iblrig_tasks_trainingChoiceWorld3.6.0',
          'Behavior training/tasks'),
         ('_iblrig_tasks_ephysChoiceWorld5.1.3',
          'Ephys recording with acute probe(s)'),
         ('_iblrig_calibration_frame2TTL4.1.3', None),
         ('_iblrig_tasks_habituationChoiceWorld3.6.0',
          'Behavior training/tasks'),
         ('_iblrig_tasks_scanningOptoChoiceWorld5.0.0', None),
         ('_iblrig_tasks_RewardChoiceWorld4.1.3', None),
         ('_iblrig_calibration_screen4.1.3', None),
         ('_iblrig_tasks_ephys_certification4.1.3',
          'Ephys recording with acute probe(s)'),
     ]
     for to in task_out:
         out = registration._alyx_procedure_from_task(to[0])
         self.assertEqual(out, to[1])
Beispiel #2
0
 def test_task_names_extractors(self):
     """
     This is to test against regressions
     """
     task_out = [
         ('_iblrig_tasks_biasedChoiceWorld3.7.0',
          'Behavior training/tasks'),
         ('_iblrig_tasks_biasedScanningChoiceWorld5.2.3',
          'Behavior training/tasks'),
         ('_iblrig_tasks_trainingChoiceWorld3.6.0',
          'Behavior training/tasks'),
         ('_iblrig_tasks_ephysChoiceWorld5.1.3',
          'Ephys recording with acute probe(s)'),
         ('_iblrig_calibration_frame2TTL4.1.3', None),
         ('_iblrig_tasks_habituationChoiceWorld3.6.0',
          'Behavior training/tasks'),
         ('_iblrig_tasks_scanningOptoChoiceWorld5.0.0', None),
         ('_iblrig_tasks_RewardChoiceWorld4.1.3', None),
         ('_iblrig_calibration_screen4.1.3', None),
         ('_iblrig_tasks_ephys_certification4.1.3',
          'Ephys recording with acute probe(s)'),
     ]
     for to in task_out:
         out = registration._alyx_procedure_from_task(to[0])
         self.assertEqual(out, to[1])
     # also makes sure that all task types have a defined procedure
     task_types = ibllib.io.extractors.base._get_task_types_json_config()
     for task_type in list(set([task_types[tt] for tt in task_types])):
         assert registration._alyx_procedure_from_task_type(
             task_type) is not None