Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For log10(a) function

Status
Not open for further replies.

shaw2004

Programmer
Feb 5, 2007
2
0
0
CN
a is an array, when I run log10(a) in python, it showed me that :eek:nly length-1 arrays can be converted to Python scalars.

How to debug this problem?

Thanks
 
What version of Python are you using and what module(s) are you using to provide the array type and the log10 function?
 
I can't seem to reproduce this; it works well for me using scipy. Could you perhaps post some sample code (a small, simple, complete program including module imports) that produces the error?

I wonder if it's something that's been fixed in the version of scipy that I'm using (0.5.2 on Python 2.5).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top