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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

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: <https://trac.osgeo.org/grass/ticket/3852>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

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

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: <https://trac.osgeo.org/grass/ticket/3852#comment:1>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

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

GRASS GIS
In reply to this post by 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: <https://trac.osgeo.org/grass/ticket/3852#comment:2>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev