[GRASS-dev] [GRASS GIS] #1879: Error at generating plot statistics within histogram tool

#1879: Error at generating plot statistics within histogram tool
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Default | Version: unspecified
Keywords: | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------
When running the 'plot statistics' option in the new histogram tool, the
following error code is generated in the command console:

Traceback (most recent call last):
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/wxp
lot/histogram.py", line 225, in OnStats

ret = grass.read_command('r.univar', map = r, flags = 'e',
quiet = True)
NameError
:
global name 'r' is not defined
Traceback (most recent call last):
   File "/usr/local/grass7/grass-7.0.svn/etc/gui/wxpython/wxp
lot/histogram.py", line 225, in OnStats

ret = grass.read_command('r.univar', map = r, flags = 'e',
quiet = True)
NameError
:
global name 'r' is not defined

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879&gt;
GRASS GIS <http://grass.osgeo.org>

#1879: Error at generating plot statistics within histogram tool
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: histogram | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------
Changes (by martinl):

  * keywords: => histogram
  * component: Default => wxGUI

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1879: Error at generating plot statistics within histogram tool
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: histogram | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------
Changes (by martinl):

  * version: unspecified => svn-trunk

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1879: Error at generating plot statistics within histogram tool
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: histogram | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------

Comment(by cmbarton):

This used to work. Some more recent change has broken it. Perhaps
something to do with the way grass.read_command is parsed?

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1879: Error at generating plot statistics within histogram tool
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: histogram
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by annakrat):

  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in 54991.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1879: Error at generating plot statistics within histogram tool
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: histogram
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------

Comment(by cmbarton):

Thanks

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1879: Error at generating plot statistics within histogram tool
-------------------------+--------------------------------------------------
  Reporter: pvanbosgeo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: histogram
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------

Comment(by cmbarton):

Works great now.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1879#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>