[GRASS-SVN] r66415 - grass-addons/grass7/gui/wxpython/wx.mwprecip
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 6 01:32:43 PDT 2015
Author: krejcmat
Date: 2015-10-06 01:32:43 -0700 (Tue, 06 Oct 2015)
New Revision: 66415
Modified:
grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.html
grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
Log:
wx.mwprecip addons:change get_lib_path to set_path
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.html
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.html 2015-10-04 13:19:41 UTC (rev 66414)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.html 2015-10-06 08:32:43 UTC (rev 66415)
@@ -1,5 +1,11 @@
<h2>DESCRIPTION</h2>
-<em>wx.mwprecip</em> allows to process data from cellular microwave links. For info please contact author
+
+<em>g.gui.mwprecip</em>
+<p>
+ The module for processing row data of microwave links to precipitation
+<h2>NOTES</h2>
+
<h2>AUTHOR</h2>
-Matej Krejci, matejkrejci at gmail.cz, Czech Technical University in Prague, Czech Republic
+Matej Krejci, <a href="http://geo.fsv.cvut.cz/gwiki/osgeorel">OSGeoREL</a>
+
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2015-10-04 13:19:41 UTC (rev 66414)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/g.gui.mwprecip.py 2015-10-06 08:32:43 UTC (rev 66415)
@@ -7,14 +7,9 @@
VERSION = 1.0
-def load_mdlib(libs):
- for lib in libs:
- path = get_lib_path(modname=os.path.join( 'etc', 'g.gui.mwprecip') ,libname=lib)
- if path is not None and path not in sys.path:
- sys.path.append(path)
- elif path is None:
- grass.fatal("Fatal error: library < %s > not found "%lib)
-load_mdlib(['mw3','mw_util'])
+from grass.pygrass.utils import set_path
+set_path(modulename='wx.mwprecip', dirname='mw3')
+set_path(modulename='wx.mwprecip', dirname='mw_util')
from mw_util import *
from mw3 import *
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2015-10-04 13:19:41 UTC (rev 66414)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2015-10-06 08:32:43 UTC (rev 66415)
@@ -18,17 +18,11 @@
import numpy as np
-from grass.pygrass.utils import get_lib_path
import grass.script as grass
-def load_mdlib(libs):
- for lib in libs:
- path = get_lib_path(modname=os.path.join( 'etc', 'g.gui.mwprecip') ,libname=lib)
- if path is not None and path not in sys.path:
- sys.path.append(path)
- elif path is None:
- grass.fatal("Fatal error: library < %s > not found "%lib)
-load_mdlib(['mw_util'])
+from grass.pygrass.utils import set_path
+set_path(modulename='wx.mwprecip', dirname='mw_util')
+
from mw_util import *
class PointInterpolation():
More information about the grass-commit
mailing list