A review of the docs indicates that conversion s/b automatic. I am
trying to do some elementary calculations on a numpy array and am
getting the following error.
>>> spartable2[:]['OO']
array([ 22.25, 5.75, -1.5 , -25. , -19.75, 8.5 , -38.75, 17.25,
18.75, -47. , 26.25, -3.75, 18.5 , -1.75, -12.5 , -3. ,
0.5 , -12. , 5.25, 10.25, 0. , 9. , -9.75, 8.75,
-4. ], dtype=float32)
>>> r.mean(spartable2[:]['OO'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
rpy.RException: cannot convert from type 'numpy.float32'
Any assistance would be much appreciated. I am using the latest
version of RPY on Python 2.5 and FC7. Thank you.
Vince Fulco
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list