浏览代码

Fixed option type of start and end time

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50477 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 年之前
父节点
当前提交
e1a964813a
共有 2 个文件被更改,包括 9 次插入4 次删除
  1. 4 4
      temporal/t.time.rel/t.time.rel.py
  2. 5 0
      temporal/t.time.rel/test.t.time.rel.file.sh

+ 4 - 4
temporal/t.time.rel/t.time.rel.py

@@ -33,16 +33,16 @@
 
 #%option
 #% key: start
-#% type: integer
-#% description: The valid integer start value for all maps, or file in case the start time is located in the input file 
+#% type: string
+#% description: The valid integer start value for all maps, or the identifier "file" in case the start time is located in the input file 
 #% required: no
 #% multiple: no
 #%end
 
 #%option
 #% key: end
-#% type: integer
-#% description: The valid integer end value for all maps, or file in case the start time is located in the input file 
+#% type: string
+#% description: The valid integer end value for all maps, or the identifier "file" in case the start time is located in the input file 
 #% required: no
 #% multiple: no
 #%end

+ 5 - 0
temporal/t.time.rel/test.t.time.rel.file.sh

@@ -53,24 +53,29 @@ t.create --o type=strds temporaltype=relative output=precip_rel title="A test wi
 
 # Test with input files
 # File 1
+echo "Test 1"
 t.time.rel -i file="${n1}" start=20 increment=5 unit=months
 
 tr.register input=precip_rel file="${n1}"
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
 
+echo "Test 2"
 # File 1
 t.time.rel file="${n1}" start=20 unit=months
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
+echo "Test 3"
 # File 2
 t.time.rel file="${n2}" start=file unit=months
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
+echo "Test 4"
 # File 2
 t.time.rel -i file="${n2}" start=file increment=5 unit=months
 t.info type=strds input=precip_rel
 tr.list input=precip_rel
+echo "Test 5"
 # File 3
 t.time.rel file="${n3}" start=file end=file unit=months
 t.info type=strds input=precip_rel