[GRASS-dev] python percent() function: omit newlines?
Markus Neteler
neteler at osgeo.org
Thu Oct 21 16:02:07 EDT 2010
Hi,
we have a small problem with grass.core.percent; which we use
in a "for" loop. Unfortunately, calling the classical g.message,
the percent() function issues with each output a newline.
Since we work with very big map (around 350.000.000 cells),
getting that number of newlines is, say, unfortunate.
I wonder if we need some "no newline" magic in g.message for this
(ne flag?) or if we can clone percent() in lib/python/core.py to not write
out a new line but to go just to the beginning of the line instead as
it is done for the topology creation progress.
Markus
More information about the grass-dev
mailing list