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

solve the error for "random.randint(0, 0)" #11

Merged
merged 1 commit into from
May 31, 2018
Merged

solve the error for "random.randint(0, 0)" #11

merged 1 commit into from
May 31, 2018

Conversation

wangershi
Copy link
Contributor

If "picture.size[0] == width" or "picture.size[1] == height", there will be an Exception beacause the code "random.randint(0, 0)", so I judge if "picture.size[0] == width" or "picture.size[1] == height" to prevent this happen.

If "picture.size[0] == width" or "picture.size[1] == height", there will be an Exception beacause the code "random.randint(0, 0)", so I judge if "picture.size[0] == width" or "picture.size[1] == height" to prevent this happen.
@codecov-io
Copy link

Codecov Report

Merging #11 into master will decrease coverage by 0.44%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   54.76%   54.32%   -0.45%     
==========================================
  Files           7        7              
  Lines         493      497       +4     
==========================================
  Hits          270      270              
- Misses        223      227       +4
Impacted Files Coverage Δ
...xtRecognitionDataGenerator/background_generator.py 31.91% <0%> (-2.97%) ⬇️

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 9eec3c9...cc7085e. Read the comment docs.

@Belval Belval merged commit de5be6a into Belval:master May 31, 2018
@Belval
Copy link
Owner

Belval commented May 31, 2018

Nice catch there.

@wangershi wangershi deleted the patch-1 branch May 31, 2018 06:00
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.

3 participants