[GRASS-SVN] r65143 - grass-addons/grass7/gui/wxpython/wx.mwprecip
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 26 14:28:56 PDT 2015
Author: krejcmat
Date: 2015-04-26 14:28:55 -0700 (Sun, 26 Apr 2015)
New Revision: 65143
Modified:
grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
Log:
del t.register file creator
Modified: grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2015-04-26 20:27:14 UTC (rev 65142)
+++ grass-addons/grass7/gui/wxpython/wx.mwprecip/mw3.py 2015-04-26 21:28:55 UTC (rev 65143)
@@ -516,19 +516,6 @@
except IOError as (errno, strerror):
grass.fatal('Cannot write temporal registration file %s' % os.path.join(self.path, TMPname))
- # creating textfile for t.register input
- filename = "timewin_%s" % prefix + "vec_" + str(self.timestamp_min).replace(' ', '_') + "|" + str(
- self.timestamp_max).replace(' ', '_')
- try:
- self.temporalRegPath = os.path.join(self.path, filename)
- io4 = open(self.temporalRegPath, 'w+')
- io4.writelines(tgrass_vector)
- io4.close()
- except IOError as (errno, strerror):
- grass.fatal('Cannot write temporal reg file %s' % os.path.join(self.path, TMPname))
-
- # drop temp table
- # sql = "DROP TABLE %s.%s" % (self.schema, self.database.recordTableName)
grass.message('creating time windows-done')
def logMsg(self, msg):
@@ -1245,12 +1232,12 @@
def createTimedataset(self, datasetName=None, datasetTitle=None,
datasetTdescription=None, temporalType='absolute',
semanticType='mean'):
- if datasetName is None:
- self.datasetName = self.datasetName
- if datasetTitle is None:
- self.datasetTitle = self.datasetTitle
- if datasetTdescription is None:
- self.datasetTdescription = self.datasetTdescription
+ if datasetName is not None:
+ self.datasetName = datasetName
+ if datasetTitle is not None:
+ self.datasetTitle = datasetTitle
+ if datasetTdescription is not None:
+ self.datasetTdescription = datasetTdescription
# print '--'*10
# #print self.datasetName
@@ -1299,7 +1286,6 @@
grass.message('Registring maps to temporal database-done')
-
class Database():
def __init__(self, name=None, user=None, password=None,
host=None, port=None, nodeVecMapName='node', linkVecMapName='link',
More information about the grass-commit
mailing list