[GRASS-dev] [GRASS GIS] #1925: Inherited Verbosity level for grass array .write()

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
Hi,

as already discussed in the GRASS dev mailing list
[http://lists.osgeo.org/pipermail/grass-dev/2013-April/062902.html here] I
recommend respectively would like to see e.g. the python function write()
which is located
[http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/array.py
here] which writes an numpy array back into GRASS to behave like other
GRASS modules concerning the inheriting of the verbosity level.

At the moment the function sets verbose=TRUE and if the function is used
in a script the verbosity level is not inherited. I suggest to remove that
line (verbose=TRUE) which might be an relict since development times (see
mailing list discussion) and allow the inheriting. This issue might also
exist for r.in.bin (source: Hamish).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1925&gt;
GRASS GIS <http://grass.osgeo.org>

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by glynn):

Replying to [ticket:1925 jradinger]:

Done in r55684.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1925#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by jradinger):

Replying to [comment:1 glynn]:
> Replying to [ticket:1925 jradinger]:
>
> Done in r55684.

Thank you. But probably needs also to be back-ported to GRASS devel and
releasebranch.
And what about r.in.bin (don't know were it is located).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1925#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------

Comment(by glynn):

Replying to [comment:2 jradinger]:
> And what about r.in.bin
What about it?

If you're referring to [http://lists.osgeo.org/pipermail/grass-
dev/2013-April/062929.html this message], you're misunderstanding his
comment. The issue is with grass.script.array passing verbose=True to
r.in.bin, not with r.in.bin itself.

> (don't know were it is located).
The source is in raster/r.in.bin; the binary is in $GISBASE/bin.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1925#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

oh sorry…yes that was a missunderstanding.

···

On Thu, Apr 11, 2013 at 1:08 PM, GRASS GIS <trac@osgeo.org> wrote:

#1925: Inherited Verbosity level for grass array .write()
-------------------------±-------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Default | Version: unspecified
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------±-------------------------------------------------

Comment(by glynn):

Replying to [comment:2 jradinger]:

And what about r.in.bin
What about it?

If you’re referring to [http://lists.osgeo.org/pipermail/grass-
dev/2013-April/062929.html this message], you’re misunderstanding his
comment. The issue is with grass.script.array passing verbose=True to
r.in.bin, not with r.in.bin itself.

(don’t know were it is located).

The source is in raster/r.in.bin; the binary is in $GISBASE/bin.


Ticket URL: <http://trac.osgeo.org/grass/ticket/1925#comment:3>
GRASS GIS <http://grass.osgeo.org>

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Python | Version: unspecified
Keywords: | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------
Changes (by hamish):

  * platform: Unspecified => All
  * component: Default => Python
  * cpu: Unspecified => All

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1925#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Python | Version: svn-releasebranch64
Keywords: | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------
Changes (by neteler):

  * version: unspecified => svn-releasebranch64
  * milestone: 6.4.3 => 6.4.4

Comment:

Replying to [comment:1 glynn]:
> Replying to [ticket:1925 jradinger]:
>
> Done in r55684.

Should this change be backported to lib/python/array.py ?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1925#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1925: Inherited Verbosity level for grass array .write()
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Python | Version: svn-releasebranch64
Keywords: | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------

Comment(by glynn):

Replying to [comment:5 neteler]:

> Should this change be backported to lib/python/array.py ?

Do you mean backported to 6.x?

If so: probably.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1925#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>