[GRASS-dev] Introduction
Luca Delucchi
lucadeluge at gmail.com
Wed Mar 21 08:47:13 PDT 2018
On 31 January 2018 at 15:31, sharry gill <sharrygill5656 at gmail.com> wrote:
> Hello,
>
Hi Sharry
>
> I have attached a simple test, I wrote for r.mode.
>
I run it in nc_basic_spm_grass7 [0] but it fails
GRASS 7.5.svn (nc_basic_spm_grass7):~ > python ~/testrmode.py
ERROR: Raster map <facility> not found
ERROR: Raster map <facility> not found
E
ERROR: Raster map <facility> not found
ERROR: Raster map <facility> not found
E
ERROR: Raster map <facility> not found
ERROR: Raster map <facility> not found
F
======================================================================
ERROR: test_1 (__main__.Testrmode)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lucadelu/testrmode.py", line 31, in test_1
msg="facility in degrees must be between 1 and 1")
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/gunittest/case.py",
line 461, in assertRasterMinMax
stdout = call_module('r.info', map=map, flags='r')
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/gunittest/gmodules.py",
line 131, in call_module
raise CalledModuleError(returncode, module, kwargs, errors)
CalledModuleError: Module run 1 r.info ended with error
Process ended with non-zero return code {'map': 'facility', 'flags':
'r', 'stderr': -1, 'stdout': -1}. See the following errors:
ERROR: Raster map <facility> not found
======================================================================
ERROR: test_2 (__main__.Testrmode)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lucadelu/testrmode.py", line 37, in test_2
msg="slope in degrees must be between 0 and 38.68939")
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/gunittest/case.py",
line 461, in assertRasterMinMax
stdout = call_module('r.info', map=map, flags='r')
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/gunittest/gmodules.py",
line 131, in call_module
raise CalledModuleError(returncode, module, kwargs, errors)
CalledModuleError: Module run 1 r.info ended with error
Process ended with non-zero return code {'map': 'slope', 'flags': 'r',
'stderr': -1, 'stdout': -1}. See the following errors:
ERROR: Raster map <slope> not found
======================================================================
FAIL: test_3 (__main__.Testrmode)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/lucadelu/testrmode.py", line 43, in test_3
msg="geology in degrees must be between 34300 and 43600")
File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/gunittest/case.py",
line 468, in assertRasterMinMax
self.fail(self._formatMessage(msg, stdmsg))
AssertionError: geology in degrees must be between 34300 and 43600
The actual minimum (217) is smaller than the reference one (34300) for
raster map geology (with maximum 948)
----------------------------------------------------------------------
Ran 3 tests in 0.905s
FAILED (failures=1, errors=2)
could you please fix it?
> I am new to Open Source community so I came early, so I can get to know
> about OSGeo and GRASS GIS.
>
> Thank You
> Supreet
>
[0] https://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.tar.gz
--
ciao
Luca
www.lucadelu.org
More information about the grass-dev
mailing list