Beispiel #1
0
 def _setup_assessors(proj_id, subj_id, session):
     for i in range(1, 3):
         SessionTools.add_assessor(
             session,
             '{}-x-{}-x-{}-x-{}-x-Proc_X_v1'.format(proj_id, subj_id, session.label(), i),
                                   assessor_presets['Proc_X_v1'],
                                   'no_inputs')
Beispiel #2
0
 def _setup_assessors(proj_id, subj_id, session):
     for i in range(1, 3):
         SessionTools.add_assessor(
             session,
             '{}-x-{}-x-{}-x-{}-x-Proc_X_v1'.format(proj_id, subj_id,
                                                    session.label(), i),
             assessor_presets['Proc_X_v1'], 'no_inputs')
Beispiel #3
0
    def test_create_assessor_with_no_input(self):
        with XnatUtils.get_interface(host=host) as intf:
            intf.connect()

            e = intf.select_experiment(proj_id, subj_id, sess_id)
            if not e.exists():
                self.assertTrue(
                    False, "Unexpected: {}//{}//{} does not exist".format(
                        proj_id, subj_id, sess_id))

            proc_a_params = {
                'xsitype': asrxsitype,
                'proctype': 'Proc_A_v1',
                'files': [('SEG', ['seg.gz'])]
            }
            SessionTools.add_assessor(e, 'proc1-x-subj1-x-sess1-x-2-Proc_A_v1',
                                      proc_a_params, 'no_inputs')
Beispiel #4
0
    def test_create_assessor_with_no_input(self):
        with XnatUtils.get_interface(host=host) as intf:
            intf.connect()

            e = intf.select_experiment(proj_id, subj_id, sess_id)
            if not e.exists():
                self.assertTrue(
                    False,
                    "Unexpected: {}//{}//{} does not exist".format(
                        proj_id, subj_id, sess_id
                    ))

            proc_a_params = {
                'xsitype': asrxsitype,
                'proctype': 'Proc_A_v1',
                'files': [
                    ('SEG', ['seg.gz'])
                ]
            }
            SessionTools.add_assessor(e,
                                      'proc1-x-subj1-x-sess1-x-2-Proc_A_v1',
                                      proc_a_params,
                                      'no_inputs')