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

Allow get_region(grid::UnstructuredVectorGrid, values) for a single-cell grid #144

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

sjdaines
Copy link
Member

@sjdaines sjdaines commented Dec 5, 2024

Previously, a 'cell=1' argument was required in a call to

get_region(grid::UnstructuredVectorGrid, values; cell::Union{Int, Symbol})

even if the grid only had 1 cell, which complicates use eg in plot scripts.

This commit adds

get_region(grid::UnstructuredVectorGrid, values)

for a single-cell grid (grid.ncells == 1)

…ell grid

Previously, a 'cell=1' argument was required in a call to
    get_region(grid::UnstructuredVectorGrid, values; cell::Union{Int, Symbol})
even if the grid only had 1 cell, which complicates use eg in plot scripts.

This commit adds
    get_region(grid::UnstructuredVectorGrid, values)
for a single-cell grid (grid.ncells == 1)
@sjdaines sjdaines merged commit 0d5ef01 into main Dec 5, 2024
3 checks passed
@sjdaines sjdaines deleted the get_region_cell branch December 5, 2024 17:03
sjdaines added a commit that referenced this pull request Dec 9, 2024
Fix method overwritten error introduced by #144
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.

1 participant