def testAddVectorData(self):
    ps = pyjet.ParticleSystemData2()
    ps.resize(12)
    a0 = ps.addVectorData((2.0, 4.0))
    a1 = ps.addVectorData((9.0, (- 2.0)))
    self.assertEqual(ps.numberOfParticles, 12)
    self.assertEqual(a0, 3)
    self.assertEqual(a1, 4)
    as0 = np.array(ps.vectorDataAt(a0))
    for val in as0:
        self.assertEqual(val.tolist(), [2.0, 4.0])
    as1 = np.array(ps.vectorDataAt(a1))
    for val in as1:
        self.assertEqual(val.tolist(), [9.0, (- 2.0)])
def testAddVectorData(self):
    ps = pyjet.ParticleSystemData2()
    ps.resize(12)
    a0 = ps.addVectorData((2.0, 4.0))
    a1 = ps.addVectorData((9.0, (- 2.0)))
    self.assertEqual(ps.numberOfParticles, 12)
    self.assertEqual(a0, 3)
    self.assertEqual(a1, 4)
    as0 = np.array(ps.vectorDataAt(a0))
    for val in as0:
        self.assertEqual(val.tolist(), [2.0, 4.0])
    as1 = np.array(ps.vectorDataAt(a1))
    for val in as1:
        self.assertEqual(val.tolist(), [9.0, (- 2.0)])