Re: [GRASS-dev] [GRASS GIS] #3852: PyGRASS GridModule silently ignores when module has no output defined

2019-05-30 Thread GRASS GIS
#3852: PyGRASS GridModule silently ignores when module has no output defined
--+-
  Reporter:  martinl  |  Owner:  grass-dev@…
  Type:  defect   | Status:  closed
  Priority:  normal   |  Milestone:  7.6.2
 Component:  PyGRASS  |Version:  unspecified
Resolution:  fixed|   Keywords:  GridModule
   CPU:  Unspecified  |   Platform:  Unspecified
--+-
Changes (by martinl):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Merged

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3852: PyGRASS GridModule silently ignores when module has no output defined

2019-05-24 Thread GRASS GIS
#3852: PyGRASS GridModule silently ignores when module has no output defined
--+-
  Reporter:  martinl  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.6.2
 Component:  PyGRASS  |Version:  unspecified
Resolution:   |   Keywords:  GridModule
   CPU:  Unspecified  |   Platform:  Unspecified
--+-

Comment (by martinl):

 See https://github.com/OSGeo/grass/pull/21

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #3852: PyGRASS GridModule silently ignores when module has no output defined

2019-05-24 Thread GRASS GIS
#3852: PyGRASS GridModule silently ignores when module has no output defined
-+-
 Reporter:  martinl  |  Owner:  grass-dev@…
 Type:  defect   | Status:  new
 Priority:  normal   |  Milestone:  7.6.2
Component:  PyGRASS  |Version:  unspecified
 Keywords:  GridModule   |CPU:  Unspecified
 Platform:  Unspecified  |
-+-
 For modules like G7:r.mapcalc PyGRASS !GridModule class fails to work. No
 output is patched since the module has no output option defined.

 {{{
 from grass.pygrass.modules import Module
 from grass.pygrass.modules.grid import GridModule
 from grass.pygrass.utils import findmaps
 from grass.pygrass.gis import Mapset

 Module('g.region', n=1000, s=0, e=1000, w=0, res=1)

 grd = GridModule('r.mapcalc',
  width=250, height=250, overlap=0,
  processes=4, split=False,
  expression='out = 1')
 grd.run()

 print (findmaps('raster', 'out', mapset=str(Mapset(
 }}}

 Prints

 {{{
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
  100%
 []
 }}}

 -> no raster map created. The !GridModule should fail at least when no
 output option is defined.

-- 
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev