Ticket #3089 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Error in classify.py Python sample

Reported by: dmorissette Owned by: dmorissette
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

Changed 3 years ago by dmorissette

  • owner changed from hobu to dmorissette
  • status changed from new to assigned

I'll commit a fix in trunk now.

Changed 3 years ago by dmorissette

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in trunk r17481

Note: See TracTickets for help on using tickets.