<div dir="ltr">So actually verbose=True should then be removed from the function<div>so that it behaves like other GRASS modules and the verbosity level</div><div>setting is inherited from the script in which .write() is used?</div>
<div>Or is there any particular reason why verbosity level is 3 be default?</div><div>If not I could file a report for improvement.</div><div><br></div><div>/Johannes</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Apr 6, 2013 at 10:32 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
Johannes Radinger wrote:<br>
<br>
> in GRASS 6.5 the python array.write() function in<br>
> <a href="http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/array.py" target="_blank">http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/array.py</a><br>
> has set verbose=TRUE. Is there any reason for that?<br>
<br>
</div>It was probably added during development and not reverted.<br>
<div class="im"><br>
> It seems when using the .write() function in a personal<br>
> script the verbose-level is not parsed to that underlying function. So<br>
> even when in the script the quiet-flag is set, an output (progress,<br>
> percentage) is still printed. So maybe some lines like in<br>
> <a href="http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/raster.py" target="_blank">http://svn.osgeo.org/grass/grass/branches/develbranch_6/lib/python/raster.py</a><br>
> could be added for this function as well:<br>
>     if quiet:<br>
>         env['GRASS_VERBOSE'] = '0'<br>
>     if verbose:<br>
>         env['GRASS_VERBOSE'] = '3'<br>
>     if overwrite:<br>
>         env['GRASS_OVERWRITE'] = '1'<br>
<br>
</div>That's not necessary; it should either pass quiet=True or pass neither<br>
quiet= nor verbose=, and allow the script's verbosity setting to be<br>
inherited.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div>