Opened 10 years ago

Closed 5 years ago

#2275 closed defect (worksforme)

g.gui.timeline datasets with the same name

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
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

Attachments (1)

g-gui-timeline-dialog.png (12.5 KB ) - added by martinl 10 years ago.
g.gui.timeline dialog

Download all attachments as: .zip

Change History (7)

by martinl, 10 years ago

Attachment: g-gui-timeline-dialog.png added

g.gui.timeline dialog

comment:1 by annakrat, 10 years ago

Should be fixed in r60052. Please test.

in reply to:  1 comment:2 by annakrat, 10 years ago

Replying to annakrat:

Should be fixed in r60052. Please test.

Not fixed yet, it still shows datasets from inaccessible mapsets. The error after Cancel should be fixed.

comment:3 by martinl, 8 years ago

Milestone: 7.0.07.0.5

comment:4 by neteler, 8 years ago

Milestone: 7.0.57.0.6

comment:5 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:6 by martinl, 5 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.