timeseries_scripts/download.py
def update_progress(progress, total):
    '''
    Display or updates a console progress bar.

    Parameters
    ----------
    progress : float
        fraction of file already downloades 
    total : int
        total number of files

    Returns
    ----------
    None

    '''

    barLength = 50  # Modify this to change the length of the progress bar
    status = ""
    block = int(round(barLength * progress))
    text = "\rProgress: [{0}] {1:.0%} of {2} {3}".format(
        "#" * block + "-" * (barLength - block),
        progress, convert_size(total), status)
    sys.stdout.write(text)
    sys.stdout.flush()

    return

    Display or updates a console progress bar.

    Parameters
    ----------
    progress : float
        fraction of file already downloades 
    total : int
        total number of files

    Returns
    ----------
    None

    
Display or updates a console progress bar.
Parameters

progress : float
fraction of file already downloades
total : int
total number of files

Returns

None
Display or updates a console progress bar . Parameters progress : float fraction of file already downloades total : int total number of files Returns None
def update_progress(progress, total):
    barLength = 50  
    status = ""
    block = int(round(barLength * progress))
    text = "\rProgress: [{0}] {1:.0%} of {2} {3}".format(
        "#" * block + "-" * (barLength - block),
        progress, convert_size(total), status)
    sys.stdout.write(text)
    sys.stdout.flush()
    return
def update_progress ( progress , total ) : barLength = 50 status = "" block = int ( round ( barLength * progress ) ) text = "\rProgress: [{0}] {1:.0%} of {2} {3}" . format ( "#" * block + "-" * ( barLength - block ) , progress , convert_size ( total ) , status ) sys . stdout . write ( text ) sys . stdout . flush ( ) return
Display or updates a console progress bar.
Display or updates a console progress bar .
'''
    Display or updates a console progress bar.

    Parameters
    ----------
    progress : float
        fraction of file already downloades 
    total : int
        total number of files

    Returns
    ----------
    None

    ''' # Modify this to change the length of the progress bar
progress
total