We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db6708 commit fcc8798Copy full SHA for fcc8798
lib/mpl_toolkits/basemap/test.py
@@ -110,14 +110,24 @@ def test_convert(self):
110
"""
111
lons, lats, bmp = self.get_data()
112
assert not lons.flags['C_CONTIGUOUS']
113
-
114
assert isinstance(lons, np.ndarray)
115
116
assert isinstance(bmp, Basemap)
117
118
xx1, yy1 = bmp(lons, lats)
119
120
+ def test_results_should_be_same_for_c_and_f_order_arrays(self):
+
121
+ lons, lats, bmp = self.get_data()
122
123
+ xx1, yy1 = bmp(lons.copy(order="C"), lats.copy(order="C"))
124
+ xx2, yy2 = bmp(lons.copy(order="F"), lats.copy(order="F"))
125
126
+ assert_almost_equal(xx1, xx2)
127
+ assert_almost_equal(yy1, yy2)
128
129
130
131
132
133
0 commit comments