[GRASS-dev] [GRASS GIS] #3007: pygrass.messages.Messenger.percent() smallest step is 2

GRASS GIS trac at osgeo.org
Thu May 5 22:08:34 PDT 2016


#3007: pygrass.messages.Messenger.percent() smallest step is 2
---------------------+-------------------------
  Reporter:  lrntct  |      Owner:  grass-dev@…
      Type:  defect  |     Status:  new
  Priority:  normal  |  Milestone:  7.2.0
 Component:  LibGIS  |    Version:  svn-trunk
Resolution:          |   Keywords:
       CPU:  x86-64  |   Platform:  Linux
---------------------+-------------------------
Changes (by zarch):

 * component:  PyGRASS => LibGIS


Comment:

 I change the component fom pygrass to LibGis since I see the problem also
 with C code:

 {{{
 #include<unistd.h>
 #include <grass/gis.h>


 int main()
 {
         int row;
         int nrows = 1352;

         G_message("Percent complete...");
         for (row = 0; row < nrows; row++)
         {
                 G_percent(row, nrows, 1);
                 usleep(10000);
         }
         G_percent(1, 1, 1);
         return 0;
 }

 }}}

 Looking at the `G_percent` code I don't understand when is used the
 function `G_set_percent_routine(int (*percent_routine) (int))` within the
 GRASS code and where the default percent_routine is defined.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3007#comment:2>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list