cartopy icon indicating copy to clipboard operation
cartopy copied to clipboard

MNT: Change map_projection to projection for Axes creation

Open greglucas opened this issue 3 years ago • 4 comments

The GeoAxes class now requires the projection keyword argument rather than map_projection to be more consistent with how a normal Axes is created. In particular, this makes working with AxesGrid and other toolkits easier by enabling a consistent keyword when passing subplot_kw, axes_class, etc...

closes #1979

greglucas avatar Jan 05 '22 00:01 greglucas

The change seems sensible. It's unclear to me whether the test failure is related.

dopplershift avatar Jan 05 '22 01:01 dopplershift

Hm... I am pretty sure it isn't related to this because this would have complained about bad "map_projection" or similar errors.

Perhaps the numpy 1.22 floating point difference from AVX512... The difference is just over the tolerance now and only on the Linux runners.

greglucas avatar Jan 05 '22 02:01 greglucas

@dopplershift, I think the failing tests were due to the floating point issues with AVX512 after all. I added a commit to increase the floating point dtype size https://github.com/SciTools/cartopy/pull/1980/commits/7c71977b659c402cd1846dd9ab2ef9de7c146b68, which appears to have fixed the failing CI. I can break that out to another PR if it would help too.

greglucas avatar Jan 06 '22 18:01 greglucas

@dopplershift, I think the commit to address that other failed test example is in this PR... Maybe I should have broken it out :)

greglucas avatar Jan 21 '22 20:01 greglucas