Ticket #3183 (closed bug: invalid)
rasterlang
| Reported by: | tsw | Owned by: | Barryrowlingson |
|---|---|---|---|
| Priority: | critical: causes crash or data corruption | Milestone: | Version 1.6.0 |
| Component: | Python plugins and bindings | Version: | |
| Keywords: | rasterlang, possible patch | Cc: | |
| Platform Version: | Platform: | All | |
| Must Fix for Release: | No | Awaiting user input: | no |
Description
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 args[0]!=args[i]:
return False
return True
the comparison between args[0] 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"),
with
'=': Op('=',operator.eq,2,2,"test equality"),
in ops.py produces a basic functioning equality operation for this plugin.
Change History
Note: See
TracTickets for help on using
tickets.