[GRASS-dev] verbose in grass.array .write() function

Johannes Radinger johannesradinger at gmail.com
Fri Apr 5 01:11:46 PDT 2013


Hi,

in GRASS 6.5 the python array.write() function in
http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/array.py
has set verbose=TRUE. Is there any reason for that?

It seems when using the .write() function in a personal
script the verbose-level is not parsed to that underlying function. So
even when in the script the quiet-flag is set, an output (progress,
percentage) is still printed. So maybe some lines like in
http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/raster.py
could be added for this function as well:
    if quiet:
        env['GRASS_VERBOSE'] = '0'
    if verbose:
        env['GRASS_VERBOSE'] = '3'
    if overwrite:
        env['GRASS_OVERWRITE'] = '1'

Does that make sense?

Best
Johannes

**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130405/97b8d160/attachment.html>


More information about the grass-dev mailing list