Skip to content

Pin xgcm version#2722

Merged
VeckoTheGecko merged 1 commit into
Parcels-code:mainfrom
VeckoTheGecko:push-plwpoorowrrz
Jul 6, 2026
Merged

Pin xgcm version#2722
VeckoTheGecko merged 1 commit into
Parcels-code:mainfrom
VeckoTheGecko:push-plwpoorowrrz

Conversation

@VeckoTheGecko

Copy link
Copy Markdown
Contributor

Description

xgcm/xgcm#743 resulted in the dropping of Axis from the public API hence we can't use it for typechecking. We'll very likely drop xgcm entirely before release, so just pinning for now.

Checklist

  • Closes None
  • This PR targets the correct branch (main for normal development, v3-support for v3 support)

AI Disclosure

None

@VeckoTheGecko VeckoTheGecko enabled auto-merge (squash) July 6, 2026 07:33
@VeckoTheGecko VeckoTheGecko merged commit 0e7c2ee into Parcels-code:main Jul 6, 2026
15 of 16 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Jul 6, 2026
@VeckoTheGecko VeckoTheGecko deleted the push-plwpoorowrrz branch July 6, 2026 07:40
@hdrake

hdrake commented Jul 6, 2026

Copy link
Copy Markdown

@VeckoTheGecko , it is removed from the top-level public API but can't you still use it like this?

from xgcm.axis import Axis

@hdrake

hdrake commented Jul 6, 2026

Copy link
Copy Markdown

Also, can you point me towards an Issue/Discussion/PR that discusses dropping xgcm entirely? What is the reason for this? Helpful for me to know why xgcm is or is not serving community needs!

@VeckoTheGecko

VeckoTheGecko commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi @hdrake . We only used xgcm for the parsing of the COMODO/SGRID metadata conventions. Due to a bug in xgcm's parser (xgcm/xgcm#686 ) we now we have our own SGRID parsing ( #2418 ) which is more reliable and maintainable than the logic in xgcm. After some refactoring, xgcm will become an unused dependency.

Deepak and Julius flagged interest in xgcm/xgcm#686 about adding SGRID to cf_xarray (or an xarray-sgrid package) so its more interoperable. Our sgrid module is intentionally quite orthogonal, and can be easily lifted into a different package at some point for those interested in doing so.

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.

2 participants