def test_numba_jit(self): """ verify particle_data() with numba JIT disabled """ self.assertTrue(hasattr(blocks.particle_data, '__numba__')) old_value = getattr(numba.config, 'DISABLE_JIT') setattr(numba.config, 'DISABLE_JIT', 1) self.assertAlmostEqual(blocks.particle_data(self.subblock), self.result) setattr(numba.config, 'DISABLE_JIT', old_value)
def test_numba_jit(self): """Verify particle_data() with numba JIT disabled""" self.assertTrue(hasattr(blocks.particle_data, '__numba__')) old_value = getattr(numba.config, 'DISABLE_JIT') setattr(numba.config, 'DISABLE_JIT', 1) self.assertAlmostEqual(blocks.particle_data(self.subblock), self.result) setattr(numba.config, 'DISABLE_JIT', old_value)
def test_particle_data(self): """Verify conversion of particle information by particle_data()""" self.assertAlmostEqual(blocks.particle_data(self.subblock), self.result)