Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. self.type = numpy.double
  2.  
  3. In [1]: a=numpy.double
  4. In [2]: numba.typeof(a)
  5. ---------------------------------------------------------------------------
  6. ValueError Traceback (most recent call last)
  7. <ipython-input-244-7ab9d6ba8d0a> in <module>
  8. ----> 1 numba.typeof(a)
  9.  
  10. C:ProgramDataAnaconda3libsite-packagesnumbatypingtypeof.py in typeof(val
  11. purpose)
  12. 32 msg = _termcolor.errmsg(
  13. 33 "cannot determine Numba type of %r") % (type(val),)
  14. ---> 34 raise ValueError(msg)
  15. 35 return ty
  16. 36
  17.  
  18. ValueError: cannot determine Numba type of <class 'type'>
  19.  
  20. In [1]: from struct import Struct
  21. In [2]: a = Struct(">dd")
  22. In [3]: numba.typeof(a)
  23. ---------------------------------------------------------------------------
  24. ValueError Traceback (most recent call last)
  25. <ipython-input-76-7ab9d6ba8d0a> in <module>
  26. ----> 1 numba.typeof(a)
  27.  
  28. C:ProgramDataAnaconda3libsite-packagesnumbatypingtypeof.py in typeof(val,
  29. purpose)
  30. 32 msg = _termcolor.errmsg(
  31. 33 "cannot determine Numba type of %r") % (type(val),)
  32. ---> 34 raise ValueError(msg)
  33. 35 return ty
  34. 36
  35.  
  36. ValueError: cannot determine Numba type of <class 'Struct'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement