-
Notifications
You must be signed in to change notification settings - Fork 42
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
[PY-664][PY-662] BUG: Rasters import for videos fails on darwin-py 0.8.54 #762
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments to consider.
darwin/importer/importer.py
Outdated
for frame_index, _annotation in annotation.frames.items(): | ||
_annotation_id = _annotation.id | ||
if ( | ||
frame_index in rl_dense_rle_ids_frames and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be tempted to break this down into a meaningfully named boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Um, as there's only 1 unique if check like this now - does this still apply? happy to create a variable and write if variable
block there instead something like:
variable = (if statement)
if variable:
...
What do you think?
Problem
A customer hit an error with importing rasters 'VideoAnnotation' object has no attribute 'data' that I was able to reproduce on darwin-py 0.8.54 but imported successfully on 0.
Solution
Handle Raster Layer checks for
VideoAnnotation
object.Changelog
Support Raster Layer checks for
VideoAnnotation
object.