Skip to content

Error when calling _search_1d_array with a multidimensional array - #2956

Merged
erikvansebille merged 3 commits into
Parcels-code:mainfrom
erikvansebille:error_multidim_arrs_in_search_1D_array
Oct 9, 2026
Merged

erikvansebille merged 3 commits into
Parcels-code:mainfrom
erikvansebille:error_multidim_arrs_in_search_1D_array

Conversation

@erikvansebille

Copy link
Copy Markdown
Member

Description

This PR adds a ValueError when the _search_1d_array() function is called with a multidimensional array, therefore guarding against unexpected results like described in #2954

Checklist

AI Disclosure

None

@wyatt-fluidnumerics wyatt-fluidnumerics left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@erikvansebille
erikvansebille enabled auto-merge (squash) October 9, 2026 13:07
@erikvansebille
erikvansebille merged commit 6e368eb into Parcels-code:main Oct 9, 2026
19 of 20 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Oct 9, 2026
@erikvansebille
erikvansebille deleted the error_multidim_arrs_in_search_1D_array branch October 9, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Error while finding vertical level

2 participants