Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add download support for tar.gz & don't download data if exists #157

Merged
merged 16 commits into from
Mar 22, 2021

Conversation

kaushikb11
Copy link
Contributor

@kaushikb11 kaushikb11 commented Mar 4, 2021

What does this PR do?

Fix: Don't download data if exists. Will throw an error if Data exists in the working directory, and there's no internet.

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests? [not needed for typos/docs]
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

  • Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #157 (bbb947e) into master (202717d) will increase coverage by 8.64%.
The diff coverage is 61.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   78.39%   87.03%   +8.64%     
==========================================
  Files          49       49              
  Lines        1583     1589       +6     
==========================================
+ Hits         1241     1383     +142     
+ Misses        342      206     -136     
Flag Coverage Δ
unittests 87.03% <61.53%> (+8.64%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
flash/core/data/utils.py 87.80% <61.53%> (-3.63%) ⬇️
flash/vision/classification/data.py 85.33% <0.00%> (+2.00%) ⬆️
flash/core/data/datamodule.py 100.00% <0.00%> (+2.22%) ⬆️
flash/text/seq2seq/translation/data.py 84.61% <0.00%> (+7.69%) ⬆️
flash/text/seq2seq/summarization/data.py 84.61% <0.00%> (+7.69%) ⬆️
flash/text/seq2seq/summarization/metric.py 96.55% <0.00%> (+12.06%) ⬆️
flash/text/seq2seq/translation/model.py 72.22% <0.00%> (+16.66%) ⬆️
flash/text/seq2seq/summarization/model.py 76.47% <0.00%> (+17.64%) ⬆️
flash/text/seq2seq/core/model.py 63.49% <0.00%> (+22.22%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 202717d...bbb947e. Read the comment docs.

@Borda Borda added the bug / fix Something isn't working label Mar 5, 2021
flash/core/data/utils.py Outdated Show resolved Hide resolved
flash/core/data/utils.py Outdated Show resolved Hide resolved
flash/core/data/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

kaushikb11 and others added 4 commits March 10, 2021 16:22
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
@justusschock justusschock enabled auto-merge (squash) March 10, 2021 15:27
@aribornstein
Copy link
Contributor

What's blocking this from being merged?

@pep8speaks
Copy link

pep8speaks commented Mar 22, 2021

Hello @kaushikb11! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-03-22 18:51:30 UTC

@kaushikb11 kaushikb11 changed the title Fix: Don't download data if exists Add download support for tar.gz & don't download data if exists Mar 22, 2021
@justusschock justusschock merged commit 03b8426 into Lightning-Universe:master Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug / fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants