def testAddScalarData(self):
    ps = pyjet.ParticleSystemData2()
    ps.resize(12)
    a0 = ps.addScalarData(2.0)
    a1 = ps.addScalarData(9.0)
    self.assertEqual(ps.numberOfParticles, 12)
    self.assertEqual(a0, 0)
    self.assertEqual(a1, 1)
    as0 = np.array(ps.scalarDataAt(a0))
    for val in as0:
        self.assertEqual(val, 2.0)
    as1 = np.array(ps.scalarDataAt(a1))
    for val in as1:
        self.assertEqual(val, 9.0)
def testAddScalarData(self):
    ps = pyjet.ParticleSystemData2()
    ps.resize(12)
    a0 = ps.addScalarData(2.0)
    a1 = ps.addScalarData(9.0)
    self.assertEqual(ps.numberOfParticles, 12)
    self.assertEqual(a0, 0)
    self.assertEqual(a1, 1)
    as0 = np.array(ps.scalarDataAt(a0))
    for val in as0:
        self.assertEqual(val, 2.0)
    as1 = np.array(ps.scalarDataAt(a1))
    for val in as1:
        self.assertEqual(val, 9.0)