Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/c/o/conceptdb-HEAD/conceptdb/db_merge.py   conceptdb(Download)
    else:
        conceptdb.connect_to_mongodb(db1)
        db1_assertions = Assertion.objects.filter(dataset=dataset)
        conceptdb.connect_to_mongodb(db2)
        db2_assertions = Assertion.objects.filter(dataset=dataset)

src/c/o/conceptdb-HEAD/conceptdb/test/test_merge.py   conceptdb(Download)
        conceptdb.connect_to_mongodb(db1)
        print "Before the merge, db %s has the following assertions: "%db1
        for a1 in Assertion.objects.filter(dataset=dataset):
            print "assertion: %s"%a1
            print "     confidence score: %s"%a1.confidence
        conceptdb.connect_to_mongodb(db2)
        print "Before the merge, db %s has the following assertions: "%db2
        for a2 in Assertion.objects.filter(dataset=dataset):
            print "assertion: %s"%a2
            print "     confidence score: %s"%a2.confidence
        print "Testing Assertion objects"
        conceptdb.connect_to_mongodb(db1)
        db1_assertions = Assertion.objects.filter(dataset=dataset)
        conceptdb.connect_to_mongodb(db2)
        db2_assertions = Assertion.objects.filter(dataset=dataset)
        conceptdb.connect_to_mongodb(db1)
        #print "After the merge, db %s has the following assertions: "%db1
        for a1 in Assertion.objects.filter(dataset=dataset):
            #print "assertion: %s"%a1
            #print "     confidence score: %s"%a1.confidence