[GRASS-SVN] r62589 - sandbox/krejcmat/src/tvectPlot
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 4 05:57:04 PST 2014
Author: krejcmat
Date: 2014-11-04 05:57:04 -0800 (Tue, 04 Nov 2014)
New Revision: 62589
Modified:
sandbox/krejcmat/src/tvectPlot/frame.py
sandbox/krejcmat/src/tvectPlot/g.gui.tplot.py
Log:
bck
Modified: sandbox/krejcmat/src/tvectPlot/frame.py
===================================================================
--- sandbox/krejcmat/src/tvectPlot/frame.py 2014-11-04 12:22:00 UTC (rev 62588)
+++ sandbox/krejcmat/src/tvectPlot/frame.py 2014-11-04 13:57:04 UTC (rev 62589)
@@ -17,11 +17,9 @@
@author Luca Delucchi
"""
-from itertools import cycle
-import numpy as np
+from grass.pygrass.modules import Module
import wx
-
try:
import matplotlib
# The recommended way to use wx with mpl is with the WXAgg
@@ -37,37 +35,17 @@
raise ImportError(_('The Temporal Plot Tool needs the "matplotlib" '
'(python-matplotlib) package to be installed.'))
-# from core.utils import _
+from itertools import cycle
-from grass.pygrass.modules import Module
-from grass.script import parse_key_val
-from subprocess import PIPE
import re
+
import grass.temporal as tgis
from core.gcmd import GMessage, GError, GException, RunCommand
from gui_core import gselect
from core import globalvar
-
-from pygrass.vector import Vector
-# from grass.pygrass.vector.table import Table
-from pygrass.vector.table import Link
-
from collections import OrderedDict
-import sys
-import os
-
-import wx
-import wx.lib.flatnotebook as FN
-
-import grass.script as grass
-
-from core.debug import Debug
from core.utils import _
-from dbmgr.base import DbMgrBase
-from gui_core.widgets import GNotebook
-
-from grass.script import parse_key_val
from subprocess import PIPE
ALPHA = 0.5
@@ -108,7 +86,7 @@
wx.Frame.__init__(self, parent, id=wx.ID_ANY,
title=_("GRASS GIS Temporal Plot Tool"))
- tgis.init(True)
+ #tgis.init(True)
self.first=True
self.listWhereConditions=[]
self.datasets = []
@@ -432,8 +410,7 @@
allDatasets = reduce(lambda x, y: x + y, reduce(lambda x, y: x + y,
allDatasets))
mapsets = tgis.get_tgis_c_library_interface().available_mapsets()
- allDatasets = [i for i in sorted(allDatasets,
- key=lambda l: mapsets.index(l[1]))]
+ allDatasets = [i for i in sorted(allDatasets,key=lambda l: mapsets.index(l[1]))]
for dataset in datasets:
errorMsg = _("Space time dataset <%s> not found.") % dataset
@@ -553,4 +530,4 @@
if __name__ == '__main__':
- run()
+ run()
\ No newline at end of file
Modified: sandbox/krejcmat/src/tvectPlot/g.gui.tplot.py
===================================================================
--- sandbox/krejcmat/src/tvectPlot/g.gui.tplot.py 2014-11-04 12:22:00 UTC (rev 62588)
+++ sandbox/krejcmat/src/tvectPlot/g.gui.tplot.py 2014-11-04 13:57:04 UTC (rev 62589)
@@ -49,6 +49,7 @@
import grass.script as grass
from core.utils import GuiModuleMain
+import sys
import frame
@@ -78,5 +79,5 @@
if __name__ == '__main__':
options, flags = grass.parser()
-
- GuiModuleMain(main)
+ main()
+ #GuiModuleMain(main)
More information about the grass-commit
mailing list