Bug report #3183


Added by Trevor Wiens over 13 years ago. Updated over 13 years ago.

Assignee:barryrowlingson -
Category:Python plugins
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:invalid
Crashes QGIS or corrupts data: Copied to github as #:13243


the equality operator does not work. In ops.py the current code exists:

def eq(*args):
debug.msg(1,"eq test ",args)
for i in range(1,len(args)):
if argsr0!=args[i]:
return False
return True

the comparison between argsr0 nad args[i] generates a bug suggesting calls to a.all() or a.any().

There is no need for a special eq operator. So replacing the line

'=': Op('=',eq,2,99,"test equality"),


'=': Op('=',operator.eq,2,2,"test equality"),

in ops.py produces a basic functioning equality operation for this plugin.


#1 Updated by Trevor Wiens over 13 years ago

Additional Information. The copy of the plugin provided by Barry on his website to download does not have this bug and is different from the code of his repository. His fix is slightly different from the one I suggest, but it does work.

#2 Updated by Borys Jurgiel over 13 years ago

This is an external plugin - please contact authors rather than use this trac. I'm assigning it to Barry and closing it. Barry, feel poked :)

#3 Updated by Borys Jurgiel over 13 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

Also available in: Atom PDF