[GRASS-dev] [GRASS GIS] #2274: g.gui.timeline datasets with the same name

GRASS GIS trac at osgeo.org
Thu May 1 14:22:53 PDT 2014


#2274: g.gui.timeline datasets with the same name
--------------------------------------------------------+-------------------
 Reporter:  martinl                                     |       Owner:  grass-dev@…              
     Type:  defect                                      |      Status:  new                      
 Priority:  normal                                      |   Milestone:  7.0.0                    
Component:  wxGUI                                       |     Version:  svn-trunk                
 Keywords:  g.gui.timeline, dataset with the same name  |    Platform:  Unspecified              
      Cpu:  Unspecified                                 |  
--------------------------------------------------------+-------------------
 When more datasets with the same name are found in the search path than
 `g.gui.timeline` shows appropriate dialog (in contrast with
 `g.gui.animation`, see #2273) - see attachment:g-gui-timeline-dialog.png.
 This dialog doesn't show datasets according to the search path.

 {{{
 g.mapset -p
 modis2002lst_yfsg

 t.list
 ----------------------------------------------
 Space time raster datasets with absolute time available in mapset
 <modis2002lst_yfsg>:
 modis at modis2002lst_yfsg
 modis_autumn at modis2002lst_yfsg
 modis_m at modis2002lst_yfsg
 modis_spring at modis2002lst_yfsg
 modis_summer at modis2002lst_yfsg
 modis_winter at modis2002lst_yfsg
 s at modis2002lst_yfsg
 Space time raster datasets with absolute time available in mapset
 <landamar>:
 modis at landamar
 }}}

 {{{
 g.gui.timeline modis
 }}}

 Btw, clicking on 'Cancel' ends with error

 {{{
  File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-
 gnu/scripts/g.gui.timeline", line 66, in <module>
     GuiModuleMain(main)
   File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/core/utils.py", line 1062, in GuiModuleMain
     mainfn()
   File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-
 gnu/scripts/g.gui.timeline", line 57, in main
     frame.SetDatasets(datasets)
   File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/timeline/frame.py", line 443, in SetDatasets
     self._redraw()
   File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/timeline/frame.py", line 364, in _redraw
     self._draw2dFigure()
   File "/opt/src/grass_trunk/dist.x86_64-unknown-linux-
 gnu/gui/wxpython/timeline/frame.py", line 329, in _draw2dFigure
     self.axes2d.set_ylim(min(yticksPos) - 1, max(yticksPos) + 1)
 ValueError: min() arg is an empty sequence
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2274>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list