Beispiel #1
0
 def test_set_data_offset(self):
     data = np.zeros(100, np.float32)
     subdata = data[:10]
     
     B = DataBuffer(data)
     B.set_subdata(subdata, offset=10)
     offset = B._pending_data[-1][2]
     assert offset == 10*4
Beispiel #2
0
    def test_set_data_offset(self):
        data = np.zeros(100, np.float32)
        subdata = data[:10]

        B = DataBuffer(data)
        B.set_subdata(subdata, offset=10)
        last_cmd = B._glir.clear()[-1]
        offset = last_cmd[2]
        assert offset == 10 * 4
Beispiel #3
0
 def test_set_data_offset(self):
     data = np.zeros(100, np.float32)
     subdata = data[:10]
     
     B = DataBuffer(data)
     B.set_subdata(subdata, offset=10)
     last_cmd = B._context.glir.clear()[-1]
     offset = last_cmd[2]
     assert offset == 10*4