ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
Re: [Image-SIG] Image.eval problem with math.sqrt
by other posts by this author
Jul 13 2003 10:07PM messages near this date
[Image-SIG] Image.eval problem with math.sqrt | [Image-SIG] Re: Obtaining image data in numarray
On 13 Jul 2003 16:55:46 -0400
"Alan Grosskurth" <alan.grosskurth@[...].ca>  wrote:

>      out = Image.eval(math.sqrt, in)
>  
>  As far as I can see, this should work because math.sqrt is a function
>  that takes one argument. But I get the following error:

It looks like the arguments in the documentation are reversed. Should
be:

    out = Image.eval(im, math.sqrt)

(BTW: "in" is a reserved word).

-Bill
-- 
Sattre Press                                    In the Quarter
http://sattre-press.com/                 by Robert W. Chambers
info@[...].com             http://itq.sattre-press.com/ 

_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Alan Grosskurth


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved