comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » 'True' python call
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: 'True' python call [message #91859 is a reply to message #91858] Fri, 04 September 2015 07:47 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Friday, September 4, 2015 at 4:29:48 PM UTC+2, Fabien wrote:
> On 09/04/2015 03:31 PM, Helder wrote:
>> All fail. Any suggestion how to do this?
>
> I dont have IDL8.5 to test it but in python "1" is equivalent to "True"

Hi Fabien,
in the meanwhile, I'm realizing that this may be a very different error. The error I get in IDL is:

% PYTHON_CALLMETHOD: Exception: 'crosscheck' is an invalid keyword argument for this function.

I'm using BFMatcher of opencv (ver 3.0) and the keyword crosscheck is defined as crossCheck with capital "C" and the error it throws is of an invalid keyword...

I just found a dirty workaround:

Python.Run, 'import cv2'
Python.Run, 'bf = cv2.BFMatcher(cv2.NORM_HAMMING, crossCheck=True)'
bf = Python.bf

and it seems to work.

Still, the question holds: can one call methods with keywords with capital letters?

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: data.sav
Next Topic: bug report

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:53:22 PDT 2025

Total time taken to generate the page: 0.00408 seconds