Skip to content
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

Merged
merged 22 commits into from
Oct 23, 2023

Conversation

ArdtK
Copy link
Contributor

@ArdtK ArdtK commented Oct 18, 2023

No description provided.

Base automatically changed from test/81-definition-of-testcases to master October 18, 2023 11:59
@Carsopre Carsopre added this to the [v0.14.0] Release 2023 milestone Oct 19, 2023
@ArdtK ArdtK linked an issue Oct 19, 2023 that may be closed by this pull request
5 tasks
Copy link
Contributor Author

@ArdtK ArdtK left a 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.

Comment on lines 78 to 84
return next(
(
_loc
for _loc in locations
if _loc.traject_order == location.traject_order
),
)
Copy link
Collaborator

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.

Suggested change
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
@ArdtK ArdtK merged commit c03799b into master Oct 23, 2023
@ArdtK ArdtK deleted the feature/86-read-and-stack-multiple-surroundings-layers branch October 23, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read and stack multiple surroundings layers
2 participants