[GRASS-dev] [GRASS GIS] #3612: g.gui.tplot: error when calling from terminal

GRASS GIS trac at osgeo.org
Thu Aug 2 17:14:10 PDT 2018


#3612: g.gui.tplot: error when calling from terminal
-------------------------+-------------------------
 Reporter:  veroandreo   |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  wxGUI        |    Version:  svn-trunk
 Keywords:  g.gui.tplot  |        CPU:  Unspecified
 Platform:  Linux        |
-------------------------+-------------------------
 When calling G7:g.gui.tplot from the terminal with:

 {{{
 g.gui.tplot strds=LST_Day_monthly_celsius
 cordinates=641428.783478,229901.400746
 }}}

 only to get the time series plot of that place, I get the following error:

 {{{
 Traceback (most recent call last):
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/scripts/g.gui.tplot", line 175, in <module>
     main()
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/scripts/g.gui.tplot", line 162, in main
     ylabel, csvfile, flags['h'], gscript .overwrite)
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/tplot/frame.py", line 1019, in SetDatasets
     self._redraw()
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/tplot/frame.py", line 899, in _redraw
     self._drawFigure()
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/tplot/frame.py", line 621, in _drawFigure
     self.drawR()
   File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
 gnu/gui/wxpython/tplot/frame.py", line 691, in drawR
     if self.csvpath:
 AttributeError: 'TplotFrame' object has no attribute 'csvpath'
 }}}

 However, if I run:

 {{{
 g.gui.tplot strds=LST_Day_monthly_celsius
 coordinates=641428.783478,229901.400746 csv=test.csv
 }}}

 then, it works. IMO `csv` should be an optional parameter (i.e., to be
 used only if the user wants to export the values).

 If using the GUI only, all goes fine.

 I use trunk r73021 in Fedora 28.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3612>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list