Opened 6 years ago

Closed 6 years ago

#2274 closed defect (duplicate)

g.gui.timeline datasets with the same name

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: svn-trunk
Keywords: g.gui.timeline, dataset with the same name Cc:
CPU: Unspecified Platform: Unspecified

Description

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

Change History (1)

comment:1 Changed 6 years ago by martinl

Resolution: duplicate
Status: newclosed

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

Note: See TracTickets for help on using tickets.