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

feat: add argument num_samples to OpenFire #33

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

blenzi
Copy link
Contributor

@blenzi blenzi commented Oct 22, 2019

Add the possibility to limit the number of samples to be downloaded, as discussed in #26. The default value is None, meaning all samples will be downloaded as before. Limited to 200 in test_datasets.py

Add the possibility to limit the number of samples to be downloaded, as discussed in pyronear#26. The default value is None, meaning all samples will be downloaded as before. Limited to 200 in test_datasets.py
@blenzi blenzi requested a review from frgfm October 22, 2019 09:05
@codecov
Copy link

codecov bot commented Oct 22, 2019

Codecov Report

Merging #33 into master will decrease coverage by 0.27%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #33      +/-   ##
=======================================
- Coverage   80.27%   80%   -0.28%     
=======================================
  Files           5     5              
  Lines         370   370              
=======================================
- Hits          297   296       -1     
- Misses         73    74       +1
Impacted Files Coverage Δ
pyronear/datasets/openfire.py 94.8% <100%> (ø) ⬆️
pyronear/datasets/utils.py 89.06% <0%> (-1.57%) ⬇️

pyronear/datasets/openfire.py Show resolved Hide resolved
test/test_datasets.py Outdated Show resolved Hide resolved
test/test_datasets.py Outdated Show resolved Hide resolved
test/test_datasets.py Outdated Show resolved Hide resolved
Define it instead of repeating 200 all over, as suggested in pyronear#33
Copy link
Member

@frgfm frgfm left a comment

Choose a reason for hiding this comment

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

PR adds an optional parameter to limit the number of samples that would be downloaded by OpenFire.download.

@frgfm frgfm merged commit aab8d30 into pyronear:master Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants