Opened 12 years ago

Closed 12 years ago

#3089 closed defect (fixed)

Error in classify.py Python sample

Reported by: Daniel Morissette Owned by: Daniel Morissette
Priority: normal Milestone: 1.7.0
Component: PythonBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

The gdal/swig/python/samples/classify.py sample calls numpy.ones() and numpy.zeros() with the arguments in the incorrect order. It will presumably work for square images but fails on images where xsize != ysize

Change History (2)

comment:1 Changed 12 years ago by Daniel Morissette

Owner: changed from hobu to Daniel Morissette
Status: newassigned

I'll commit a fix in trunk now.

comment:2 Changed 12 years ago by Daniel Morissette

Resolution: fixed
Status: assignedclosed

Fixed in trunk r17481

Note: See TracTickets for help on using tickets.