Skip to content

Commit

Permalink
Fix wrong assertion (nutonomy#560)
Browse files Browse the repository at this point in the history
Co-authored-by: Holger Caesar <holger.caesar@motional.com>
  • Loading branch information
holger-motional and Holger Caesar authored Mar 1, 2021
1 parent 5325d1b commit 4c7651f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-sdk/nuimages/nuimages.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def render_image(self,
# Validate inputs.
sample_data = self.get('sample_data', sd_token)
if not sample_data['is_key_frame']:
assert annotation_type != 'none', 'Error: Cannot render annotations for non keyframes!'
assert annotation_type == 'none', 'Error: Cannot render annotations for non keyframes!'
assert not with_attributes, 'Error: Cannot render attributes for non keyframes!'
if with_attributes:
assert with_category, 'In order to set with_attributes=True, with_category must be True.'
Expand Down

0 comments on commit 4c7651f

Please sign in to comment.