Exemple #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()
Exemple #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_spm_ex004(self):
        spm_example_file = os.path.join(NIDM_RESULTS_DIR, "spm", \
            "example004", 'spm_inference_activities.ttl')

        current_graph, spm_current = self._parse_graph(spm_example_file)
        create_spm_example_004.main()
        updated_graph, unused = self._parse_graph(spm_example_file, spm_current)

        found_difference = self._compare_graphs(current_graph, updated_graph)

        if found_difference:
            raise Exception("example004/spm_inference_activities.ttl is not up \
                to date with templates. Please use \
                nidm/nidm-results/scripts/create_spm_example_003.py.")         
Exemple #4
0
    def test_spm_ex004(self):
        spm_example_file = os.path.join(NIDM_RESULTS_DIR, "spm", \
            "example004", 'spm_inference_activities.ttl')

        current_graph, spm_current = self._parse_graph(spm_example_file)
        create_spm_example_004.main()
        updated_graph, unused = self._parse_graph(spm_example_file,
                                                  spm_current)

        found_difference = self._compare_graphs(current_graph, updated_graph)

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