<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;">
    <p><font size="4"><font face="Helvetica, Arial, sans-serif">Thanks
          for the quick responses!</font></font></p>
    <p><font size="4"><font face="Helvetica, Arial, sans-serif"><br>
        </font></font></p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 07/11/2022 16:57, Howard Butler
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8EFF2968-A05C-432E-A2AB-F017D7865CB6@hobu.co">
      <pre class="moz-quote-pre" wrap="">

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On Nov 7, 2022, at 8:50 AM, Micha Silver <a class="moz-txt-link-rfc2396E" href="mailto:tsvibar@gmail.com"><tsvibar@gmail.com></a> wrote:

When running a pdal pipeline in python, is there a way to display a progress bar?


If I have:

pipeline = pdal.Pipeline([stage1, stage2, ....])


Can I do something like:
count = tqdm(pipeline.execute())
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
Progress reporting is hard. At least as hard as naming things or caching.

For granular progress output, there's really only one option right now, and it works only if your pipeline is streamable. Use execute_streaming() with a chunk size for pipelines that are .streamable. You will have to do your own progress math.

I suppose we could expose the stage completion signals to the Python bindings, but that isn't going to be particularly granular because some stages are done in an instance and others take the rest of the 99% of the time, depending on how the pipeline is configured. 

Another option would be to use the log-timing output as some kind of heuristic to estimate completeness at a point in time. That isn't exposed to the Python bindings at this time either, however.

Howard</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918</pre>
  </body>
</html>