-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/86 read and stack multiple surroundings layers #89
Feature/86 read and stack multiple surroundings layers #89
Conversation
…nd-stack-multiple-surroundings-layers
chore: generalize buildings to surroundings in polderside functions
koswat/dike/surroundings/wrapper/surroundings_wrapper_builder.py
Outdated
Show resolved
Hide resolved
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.
@Carsopre I processed the review comment. We need to discuss the way locations are referenced. Doing a deepcopy created need objects, while they are referenced to the original objects.
Next to that I added a testcase for the surrounding_wrapper to test the functionality of getting the "safe" points, depending on the distance of different surroundings and their flags. This could be expanded with more combinations of distances and flags.
return next( | ||
( | ||
_loc | ||
for _loc in locations | ||
if _loc.traject_order == location.traject_order | ||
), | ||
) |
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.
If you don't need the default value you can simplify the next
statement.
Also, if possible, replace the List
usage with list
in this file.
return next( | |
( | |
_loc | |
for _loc in locations | |
if _loc.traject_order == location.traject_order | |
), | |
) | |
return next( _loc for _loc in locations if _loc.traject_order == location.traject_order ) |
… of https://github.com/Deltares/Koswat into feature/86-read-and-stack-multiple-surroundings-layers # Conflicts: # koswat/cost_report/io/csv/summary_matrix_csv_fom_builder.py
No description provided.