Opened 6 years ago

Closed 6 years ago

#3612 closed defect (fixed)

g.gui.tplot: error when calling from terminal

Reported by: veroandreo Owned by: grass-dev@…
Priority: normal Milestone:
Component: wxGUI Version: svn-trunk
Keywords: g.gui.tplot Cc:
CPU: Unspecified Platform: Linux

Description

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.

Change History (2)

comment:1 by lucadelu, 6 years ago

Please try r73032.

in reply to:  1 comment:2 by veroandreo, 6 years ago

Resolution: fixed
Status: newclosed

Replying to lucadelu:

Please try r73032.

It works now, no errors. Thanks!

I close as fixed, since this is related to a new feature and IIUC it should not be backported. Reopen if needed.

Note: See TracTickets for help on using tickets.