Skip to content

Conversation

@VeckoTheGecko
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko commented Jun 30, 2025

#2037 introduced some functionality for checking the provided lon and lat grids. This, however, does not apply to constant fields which have 0D spatial grids.

This PR also adds the XGrid.axes attribute (in line with #2056) and removes the .lonlat_minmax attribute used in v3.

This PR disables the check for these grids as they don't have a lon/lat grid provided. The lon/lat assertion would need to be revisited in #2054.

Merge after #2037 (just splitting into a different PR for review-ability, rather than piling into the same one)

@VeckoTheGecko VeckoTheGecko changed the title Disable assert_valid_lat_lon for 0D grids Scope assert_valid_lat_lon for >0D grids Jun 30, 2025
@VeckoTheGecko VeckoTheGecko changed the base branch from main to xgrid-interp June 30, 2025 14:52
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jun 30, 2025
@VeckoTheGecko VeckoTheGecko reopened this Jun 30, 2025
@github-project-automation github-project-automation bot moved this from Done to Backlog in Parcels development Jun 30, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Ready in Parcels development Jun 30, 2025
Base automatically changed from xgrid-interp to v4-dev July 1, 2025 12:52
This was in v3 of parcels and isn't needed anymore
Adds a `.axes` attribute to help with the check (in line with development - see #2054)
@VeckoTheGecko VeckoTheGecko merged commit 8c01bf0 into v4-dev Jul 1, 2025
5 of 11 checks passed
@VeckoTheGecko VeckoTheGecko deleted the zero-d-grid branch July 1, 2025 13:04
@github-project-automation github-project-automation bot moved this from Ready to Done in Parcels development Jul 1, 2025
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.

3 participants