Exemplo n.º 1
0
def main():
    logger.debug(" create_term_examples")
    create_term_examples.main()
    logger.debug(" create_spm_example")
    create_spm_example.main()
    logger.debug(" create_spm_example_001")
    create_spm_example_001.main()
    logger.debug(" create_spm_example_002")
    create_spm_example_002.main()
    logger.debug(" create_spm_example_003")
    create_spm_example_003.main()
    logger.debug(" create_spm_example_004")
    create_spm_example_004.main()
    logger.debug(" create_spm_example_005")
    create_spm_example_005.main()
    logger.debug(" create_fsl_example")
    create_fsl_example.main()
    logger.debug(" create_fsl_example_001")
    create_fsl_example_001.main()
    logger.debug(" create_fsl_example_002")
    create_fsl_example_002.main()
    logger.debug(" create_fsl_example_003")
    create_fsl_example_003.main()
    logger.debug(" create_minimal_examples")
    create_minimal_examples.main()
Exemplo n.º 2
0
def main():
	logger.debug(" create_term_examples")
	create_term_examples.main()
	logger.debug(" create_spm_example")
	create_spm_example.main()
	logger.debug(" create_spm_example_001")
	create_spm_example_001.main()
	logger.debug(" create_spm_example_002")
	create_spm_example_002.main()
	logger.debug(" create_spm_example_003")
	create_spm_example_003.main()
	logger.debug(" create_spm_example_004")
	create_spm_example_004.main()
	logger.debug(" create_spm_example_005")
	create_spm_example_005.main()
	logger.debug(" create_fsl_example")
	create_fsl_example.main()
	logger.debug(" create_fsl_example_001")
	create_fsl_example_001.main()
	logger.debug(" create_fsl_example_002")
	create_fsl_example_002.main()
	logger.debug(" create_fsl_example_003")
	create_fsl_example_003.main()
	logger.debug(" create_minimal_examples")
	create_minimal_examples.main()	
    def test_fsl_ex002(self):
        example_file = os.path.join(NIDM_RESULTS_DIR, "test", "ground_truth", "voxelwise_p001_unc", "nidm.ttl")

        current_graph, fsl_current = self._parse_graph(example_file)
        create_fsl_example_002.main()
        updated_graph, unused = self._parse_graph(example_file, fsl_current)

        found_difference = self._compare_graphs(current_graph, updated_graph)

        if found_difference:
            raise Exception("example002/fsl_nidm.ttl is not up to date with templates. \
                Please use nidm/nidm-results/scripts/create_fsl_example002.py.")