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

#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@modis2002lst_yfsg
modis_autumn@modis2002lst_yfsg
modis_m@modis2002lst_yfsg
modis_spring@modis2002lst_yfsg
modis_summer@modis2002lst_yfsg
modis_winter@modis2002lst_yfsg
s@modis2002lst_yfsg
Space time raster datasets with absolute time available in mapset
<landamar>:
modis@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&gt;
GRASS GIS <http://grass.osgeo.org>

#2274: g.gui.timeline datasets with the same name
--------------------------+-------------------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: duplicate | Keywords: g.gui.timeline, dataset with the same name
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

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

Comment:

huh, trac behaves strangely, it created duplicated tickets when attaching
the file, sorry, closing - duplicated with #2275

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