1. agentultra
  2. pypy

Commits

MostAwesomeDude  committed cb21bb3

translator/goal: Fix up standalone numpy.

  • Participants
  • Parent commits a69e4eb
  • Branches numpy-exp

Comments (0)

Files changed (1)

File pypy/translator/goal/targetnumpystandalone.py

View file
 """
 
 import time
-from pypy.module.micronumpy.numarray import SingleDimArray, compute
+from pypy.module.micronumpy.numarray import SingleDimArray, Code, compute
 from pypy.jit.codewriter.policy import JitPolicy
 
 def create_array(size):
         arrays.append(create_array(size))
     for i in range(no_floats):
         floats.append(float(i + 1))
+    code = Code(bytecode, arrays, floats)
     t0 = time.time()
-    compute(bytecode, arrays)
+    compute(code)
     print "bytecode:", bytecode, "size:", size
     print "took:", time.time() - t0
     return 0