[GRASS-dev] Introduction

Hello,

I am Supreet Singh, from Punjab, India. Currently doing my bachelors from Guru Nanak Dev Engineering College. I am interested in GRASS GIS module testing so as an idea for GSOC I sent an email before. I am Good in HTML, CSS, Javascript, C++ and especially Python as this project idea is to be written in Python.

Link to a sample image for the project: Google Doc Link

I have attached a simple test, I wrote for r.mode.

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

(attachments)

testrmode.py (1.4 KB)

On 31 January 2018 at 15:31, sharry gill <sharrygill5656@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

Hi,

I attached the fixed file.

(attachments)

testrmode.py (1.42 KB)

···

On Wed, Mar 21, 2018 at 9:17 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 31 January 2018 at 15:31, sharry gill <sharrygill5656@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 not found
ERROR: Raster map not found

E
ERROR: Raster map not found
ERROR: Raster map not found

E
ERROR: Raster map not found
ERROR: Raster map 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 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 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

Thank You

Supreet Singh
https://singhsupreet.github.io/

On 22 March 2018 at 10:07, Supreet Singh Gill <sharrygill5656@gmail.com> wrote:

Hi,

Hi,

I attached the fixed file.

still not working

Thank You
Supreet Singh
https://singhsupreet.github.io/

--
ciao
Luca

www.lucadelu.org

but it is working for me, I attached the grass_cmd_output and test_keyvalue_result.

I tested on nc_spm_08_grass7

(attachments)

test_keyvalue_result.txt (203 Bytes)
grass_cmd_output.txt (3 KB)
testrmode.py (1.42 KB)

···

On Thu, Mar 22, 2018 at 3:32 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 22 March 2018 at 10:07, Supreet Singh Gill <sharrygill5656@gmail.com> wrote:

Hi,

Hi,

I attached the fixed file.

still not working

Thank You
Supreet Singh
https://singhsupreet.github.io/


ciao
Luca

www.lucadelu.org

Thank You

Supreet Singh
https://singhsupreet.github.io/

Hi guys,

For me it works partly:

python ~/testmode.py

100%

.

100%

F

100%

.

···

but it is working for me, I attached the grass_cmd_output and test_keyvalue_result.

I tested on nc_spm_08_grass7

Thank You

Supreet Singh
https://singhsupreet.github.io/

On Thu, Mar 22, 2018 at 3:32 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

On 22 March 2018 at 10:07, Supreet Singh Gill <sharrygill5656@gmail.com> wrote:

Hi,

Hi,

I attached the fixed file.

still not working

Thank You
Supreet Singh
https://singhsupreet.github.io/


ciao
Luca

www.lucadelu.org

On 22 March 2018 at 11:14, Supreet Singh Gill <sharrygill5656@gmail.com> wrote:

but it is working for me, I attached the grass_cmd_output and
test_keyvalue_result.

I tested on nc_spm_08_grass7

ok with this location is working also for me.
I did few changes and submitted with r72530

Thank You
Supreet Singh
https://singhsupreet.github.io/

--
ciao
Luca

www.lucadelu.org

Hi,

2018-03-23 17:05 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

I tested on nc_spm_08_grass7

ok with this location is working also for me.
I did few changes and submitted with r72530

isn't testsuite based on basic nc location only? Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 23 March 2018 at 17:08, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

Hi,

2018-03-23 17:05 GMT+01:00 Luca Delucchi <lucadeluge@gmail.com>:

I tested on nc_spm_08_grass7

ok with this location is working also for me.
I did few changes and submitted with r72530

isn't testsuite based on basic nc location only? Ma

you are right, Supreet please send new file using basic nc location as
written before

https://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.tar.gz

--
ciao
Luca

www.lucadelu.org