Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.type = numpy.double
- In [1]: a=numpy.double
- In [2]: numba.typeof(a)
- ---------------------------------------------------------------------------
- ValueError Traceback (most recent call last)
- <ipython-input-244-7ab9d6ba8d0a> in <module>
- ----> 1 numba.typeof(a)
- C:ProgramDataAnaconda3libsite-packagesnumbatypingtypeof.py in typeof(val
- purpose)
- 32 msg = _termcolor.errmsg(
- 33 "cannot determine Numba type of %r") % (type(val),)
- ---> 34 raise ValueError(msg)
- 35 return ty
- 36
- ValueError: cannot determine Numba type of <class 'type'>
- In [1]: from struct import Struct
- In [2]: a = Struct(">dd")
- In [3]: numba.typeof(a)
- ---------------------------------------------------------------------------
- ValueError Traceback (most recent call last)
- <ipython-input-76-7ab9d6ba8d0a> in <module>
- ----> 1 numba.typeof(a)
- C:ProgramDataAnaconda3libsite-packagesnumbatypingtypeof.py in typeof(val,
- purpose)
- 32 msg = _termcolor.errmsg(
- 33 "cannot determine Numba type of %r") % (type(val),)
- ---> 34 raise ValueError(msg)
- 35 return ty
- 36
- ValueError: cannot determine Numba type of <class 'Struct'>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement