Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add download callback to ClimaArtifactsHelper #76

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 25, 2024

  1. Add download callback to ClimaArtifactsHelper

    The callback handles the condition when total size is unknown.
    Total size is printed as  MB as an int if it is less than 1 GB, and GB with 2 decimal
    places otherwise. The same applies to dowloaded size and rate.
    
    The function `download_rate_callback` returns
    the callback for Downloads.downloads. The callback calculates the
    download rate over an interval, and prints the result at the end of
    the interval. It also prints download progress. This callback
    uses a closure to keep track of the time and bytes downloaded
    at the end of the previous interval.
    imreddyTeja committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    3d15025 View commit details
    Browse the repository at this point in the history
  2. Add download callback to artifact scripts

    Add download rate callback from ClimaArtifactsHelper
    to all scripts that use Downloads.jl
    Sbozzolo authored and imreddyTeja committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    1d76a1f View commit details
    Browse the repository at this point in the history