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

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

src/d/r/DrumBurp-HEAD/src/Data/Measure.py   DrumBurp(Download)
    def _readCounter(self, scoreIterator):
        counter = MeasureCount.MeasureCount()
        counter.read(scoreIterator)
        self.setBeatCount(counter)
 

src/d/r/DrumBurp-HEAD/src/test/testMeasureCount.py   DrumBurp(Download)
        iterator = fileUtils.dbFileIterator(handle)
        count = MeasureCount.MeasureCount()
        count.read(iterator)
        self.assert_(count.isSimpleCount())
        self.assertEqual(len(count), 16)
        iterator = fileUtils.dbFileIterator(handle)
        count = MeasureCount.MeasureCount()
        count.read(iterator, True)
        self.assert_(count.isSimpleCount())
        self.assertEqual(len(count), 16)
        iterator = fileUtils.dbFileIterator(handle)
        count = MeasureCount.MeasureCount()
        count.read(iterator)
        self.assertFalse(count.isSimpleCount())
        self.assertEqual(len(count), 11)