chanzuckerberg / cellxgene-census

CZ CELLxGENE Discover Census
https://chanzuckerberg.github.io/cellxgene-census/
MIT License
72 stars 19 forks source link

[python] Progress bar for download_source_h5ad #1153

Closed ivirshup closed 1 month ago

ivirshup commented 1 month ago

For #1033

Adding a progress bar for download_source_h5ad

TODO:

Currently looks like:

In [3]: cellxgene_census.download_source_h5ad(small_dataset.dataset_id, "tmp.h5ad")
Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.10M/5.10M [00:00<00:00, 17.7MB/s]
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 94.44444% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 91.12%. Comparing base (e36addb) to head (8cec54c). Report is 11 commits behind head on main.

Files Patch % Lines
api/python/cellxgene_census/tests/test_open.py 91.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1153 +/- ## ========================================== - Coverage 91.12% 91.12% -0.01% ========================================== Files 77 77 Lines 5857 5902 +45 ========================================== + Hits 5337 5378 +41 - Misses 520 524 +4 ``` | [Flag](https://app.codecov.io/gh/chanzuckerberg/cellxgene-census/pull/1153/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=chanzuckerberg) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/chanzuckerberg/cellxgene-census/pull/1153/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=chanzuckerberg) | `91.12% <94.44%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=chanzuckerberg#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.