示例#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()
示例#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_ex001(self):
        example_file = os.path.join(NIDM_RESULTS_DIR, "spm", \
            "example001", 'example001_spm_results.ttl')

        current_graph, spm_current = self._parse_graph(example_file)
        create_spm_example_001.main()
        updated_graph, unused = self._parse_graph(example_file, spm_current)

        found_difference = self._compare_graphs(current_graph, updated_graph)

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