print_progress_bar¶

HSTB.kluster.fqpr_helpers.print_progress_bar(iteration, total, prefix='Progress:', suffix='Complete', decimals=1, length=70, fill='█', print_end='\r')¶

Call in a loop to generate a text progress bar, ex: # A List of Items items = list(range(0, 57)) l = len(items) # Initial call to print 0% progress printProgressBar(0, l, prefix = ‘Progress:’, suffix = ‘Complete’, length = 50) for i, item in enumerate(items): # Do stuff… time.sleep(0.1) # Update Progress Bar printProgressBar(i + 1, l, prefix = ‘Progress:’, suffix = ‘Complete’, length = 50)

Parameters
  • iteration – current iteration out of the total iterations

  • total – total iterations

  • prefix – prefix string for the display

  • suffix – suffix string for the display

  • decimals – number of decimals in the progress percentage

  • length – character length of the bar

  • fill – bar fill character

  • print_end – end character

kluster

Navigation

  • Requirements
  • Quickstart - Basic
  • Quickstart - Monitor
  • FAQ
  • Vessel Setup
  • Processing
  • Surfacing
  • Backscatter
  • Sonar Acceptance
  • Cleaning
  • Products
  • Settings
  • Learn more about Kluster
  • For Developers
  • API
    • fqpr_convenience module
    • fqpr_generation module
    • fqpr_project module
    • fqpr_intelligence module
    • fqpr_actions module
    • fqpr_vessel module
    • monitor module
    • xarray_conversion module
    • orientation module
    • beampointingvector module
    • svcorrect module
    • georeference module
    • tpu module
    • backscatter module
    • visualizations module
    • sat module
    • wobble module
    • export module
    • subset module
    • rotations module
    • pdal_entwine module
    • dask_helpers module
    • fqpr_helpers module
      • HSTB.kluster.fqpr_helpers Module
        • Functions
    • gdal_helpers module
    • numba_helpers module
    • pydro_helpers module
    • xarray_helpers module
    • utc_helpers module
    • logging_conf module
  • Changes List

Related Topics

  • Documentation overview
    • API
      • fqpr_helpers module
        • Previous: haversine
        • Next: return_directory_from_data

Quick search

©2020, Eric Younkin. | Powered by Sphinx 5.3.0 & Alabaster 0.7.12 | Page source