Making grid arguments for divergence and vorticity keyword-only as forward-looking API change #1519
Labels
Area: Calc
Pertains to calculations
Type: API Change
Changes to how existing functionality works
Type: Enhancement
Enhancement to existing functionality
Milestone
It occurred to me after the overhaul of
advection
in #1490 that a similar "quasi-overloading" approach may work well forvorticity
anddivergence
to handle both their 2D and 3D cases with the same function (as discussed in #684, "We can defer designs on extending divergence to 3D and vorticity to other planes until we actually can see what we're doing with xarray.").While we definitely don't have to have the 3D forms implemented immediately for v1.0, I think it would make sense to make the grid arguments keyword-only in anticipation of this change so that we don't have an API break when adding in the optional
w
term. Would this be a reasonable change? Also, while we're at it, what should the behavior be for these (now-optional-with-xarray) grid arguments in the rest of the kinematics calculations (right now they're just regular optional arguments)?The text was updated successfully, but these errors were encountered: