Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Remove angle range in rotate_bbox and rotate #699

Merged
merged 4 commits into from
Sep 25, 2018

Conversation

knorth55
Copy link
Contributor

  • remove angle range in rotate
  • remove angle range in rotate_bbox
  • fix test_rotate.py

@@ -20,22 +19,22 @@ def rotate_bbox(bbox, angle, size):
"""
if angle % 90 != 0:
raise ValueError(
'angle in [180, 90, 0, -90, -180] is only supported: {}'
'angle which satisfies angle % 90 == 0 is only supported: {}'
.format(angle))
return bbox
Copy link
Member

Choose a reason for hiding this comment

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

this line is unnecessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean return bbox?

Copy link
Member

Choose a reason for hiding this comment

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

yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@yuyu2172 yuyu2172 merged commit 0bd6592 into chainer:master Sep 25, 2018
@knorth55 knorth55 deleted the angle-range branch September 25, 2018 08:12
@yuyu2172 yuyu2172 added this to the 0.11 milestone Oct 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants