Opened 11 years ago
Closed 9 years ago
#1925 closed enhancement (fixed)
Inherited Verbosity level for grass array .write()
Reported by: | jradinger | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.4 |
Component: | Python | Version: | svn-releasebranch64 |
Keywords: | Cc: | ||
CPU: | All | Platform: | All |
Description
Hi,
as already discussed in the GRASS dev mailing list here I recommend respectively would like to see e.g. the python function write() which is located 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).
Change History (7)
follow-ups: 2 5 comment:1 by , 11 years ago
follow-up: 3 comment:2 by , 11 years ago
comment:3 by , 11 years ago
Replying to jradinger:
And what about r.in.bin
What about it?
If you're referring to 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.
comment:4 by , 11 years ago
Component: | Default → Python |
---|---|
CPU: | Unspecified → All |
Platform: | Unspecified → All |
follow-up: 6 comment:5 by , 11 years ago
Milestone: | 6.4.3 → 6.4.4 |
---|---|
Version: | unspecified → svn-releasebranch64 |
follow-up: 7 comment:6 by , 11 years ago
Replying to neteler:
Should this change be backported to lib/python/array.py ?
Do you mean backported to 6.x?
If so: probably.
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to jradinger:
Done in r55684.