def __init__(self): super(IntraAnalysisTestCase, self).__init__() self.output_directory = os.path.join('/neurospin', 'tmp', 'cati-dev-prod', 'morphologist', 'output_dirs', getpass.getuser(), IntraAnalysis.get_default_parameter_template_name()) reset_directory(self.output_directory)
def __init__(self): super(IntraAnalysisTestCase, self).__init__() test_dir = os.environ.get("BRAINVISA_TESTS_DIR") if not test_dir: raise RuntimeError("BRAINVISA_TESTS_DIR is not set") test_dir = os.path.join(test_dir, "tmp_tests_brainvisa") self.output_directory = os.path.join(test_dir, "morphologist-ui", "brainvisa") reset_directory(self.output_directory)
def __init__(self): super(MockStudyTestCase, self).__init__() self.analysis_type = "MockAnalysis" self.studyname = 'mock_study' self.output_directory = '/tmp/morphologist_output_mock_study_test_case' self.subjectnames = ['bla', 'blabla', 'blablabla'] self.filenames = ['/tmp/morphologist_output_mock_study_test_case/foo'] * len(self.subjectnames) self.groupnames = [Subject.DEFAULT_GROUP] * len(self.subjectnames) reset_directory(self.output_directory)
def __init__(self): super(IntraAnalysisTestCase, self).__init__() tests_dir = os.getenv("BRAINVISA_TEST_RUN_DATA_DIR") if not tests_dir: raise RuntimeError('BRAINVISA_TEST_RUN_DATA_DIR is not set') tests_dir = os.path.join(tests_dir, 'tmp_tests_brainvisa') self.output_directory = os.path.join(tests_dir, 'morphologist-ui', 'brainvisa') reset_directory(self.output_directory)
def __init__(self): super(MockAnalysisTestCase, self).__init__() test_dir = os.environ.get('BRAINVISA_TESTS_DIR') if not test_dir: raise RuntimeError('BRAINVISA_TESTS_DIR is not set') self.output_directory = os.path.join( test_dir, 'tmp_tests_brainvisa/morphologist-ui/' 'mock_analysis_test_case_output_directory') reset_directory(self.output_directory)
def __init__(self): super(MockStudyTestCase, self).__init__() self.analysis_type = "MockAnalysis" self.studyname = 'mock_study' test_dir = os.environ.get('BRAINVISA_TESTS_DIR') if not test_dir: raise RuntimeError('BRAINVISA_TESTS_DIR is not set') self.output_directory = os.path.join( test_dir, 'tmp_tests_brainvisa/morphologist_output_mock_study_test_case') self.subjectnames = ['bla', 'blabla', 'blablabla'] self.filenames = [os.path.join(self.output_directory, 'foo')] \ * len(self.subjectnames) self.groupnames = [Subject.DEFAULT_GROUP] * len(self.subjectnames) reset_directory(self.output_directory)
def __init__(self): super(IntraAnalysisStudyTestCase, self).__init__() self.analysis_type = "IntraAnalysis" self.studyname = "study with param template: " + self.parameter_template_name() self.output_directory = os.path.join('/neurospin', 'tmp', 'cati-dev-prod', 'morphologist', 'output_dirs', getpass.getuser(), self.parameter_template_name()) inputdir = os.path.join('/neurospin', 'lnao', 'Panabase', 'cati-dev-prod', 'morphologist', 'raw_irm') basenames = ['caca.ima', 'chaos.nii.gz', 'dionysos2.ima', 'hyperion.nii'] self.filenames = [os.path.join(inputdir, filename) for filename in basenames] self.subjectnames = ['caca', 'chaos', 'dionysos2', 'hyperion'] self.groupnames = ['group 1', 'group 2', 'group 3', 'group 4'] reset_directory(self.output_directory)
def __init__(self): super(IntraAnalysisStudyTestCase, self).__init__() self.analysis_type = "IntraAnalysis" self.studyname = "study with param template: " + self.parameter_template_name() test_dir = os.environ.get('BRAINVISA_TESTS_DIR') if not test_dir: raise RuntimeError('BRAINVISA_TESTS_DIR is not set') test_dir = os.path.join(test_dir, 'tmp_tests_brainvisa') self.output_directory = os.path.join(test_dir, 'morphologist-ui', self.parameter_template_name()) inputdir = os.path.join(test_dir, 'data_unprocessed') basenames = ['sujet01.ima', 'sujet02.ima', 'sujet03.ima'] self.subjectnames = [filename.split('.')[0] for filename in basenames] self.filenames = [os.path.join(inputdir, subject, 'anatomy', filename) for filename, subject in zip(basenames, self.subjectnames)] self.groupnames = ['group 1', 'group 2', 'group 3'] reset_directory(self.output_directory)
def __init__(self): super(MockAnalysisTestCase, self).__init__() self.output_directory = os.path.join('/tmp', 'mock_analysis_test_case_output_directory') reset_directory(self.output_directory)