-
Notifications
You must be signed in to change notification settings - Fork 13
Dev #436
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
Dev #436
Conversation
fix small bugs in project creation
Fix groups with no tasks
…rint Feature smaller task size footprint
| center_x = feature.GetFieldAsDouble("center_x") | ||
| center_y = feature.GetFieldAsDouble("center_y") | ||
| groups[group_id_string]["center_points"].append([center_x, center_y]) | ||
| except: # noqa |
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.
flake8 raises an issue not to use bar except statements. If the error type is known it should be used instead. But I am not sure which error would be raised by GetFieldAsDouble if the key is not found.
Probably KeyError.
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.
yep, I also was not sure which error will be raised, since this will come from gdal/ogr and this is always a bit complicated
No description provided.