The original title was: 'Numpy array: 'data type not understood''. Turns out, the problem was my misunderstanding of Python as an interpreted language.
I have this very simple module 'rtm.py':
import numpy as np
def f():
A=np.array([[1.0,0.5],[0.0,1.0]])
But when I run it in IPython:
import rtm
rtm.f()
I get this error:
1 import numpy as np
2 def f():
----> 3 np.array([[1.0,0.5],[0.0,1.0]])
TypeError: data type not understood
Which part in the documentation didn't I understand?
Thanks in advance!