MCPcopy Create free account
hub / github.com/shapely/shapely / test_transform_0dim

Function test_transform_0dim

shapely/tests/test_coordinates.py:310–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308
309
310def test_transform_0dim():
311 # a geometry input returns a geometry
312 actual = transform(point, lambda x: x + 1)
313 assert isinstance(actual, shapely.Geometry)
314 # a 0-dim array input returns a 0-dim array
315 actual = transform(np.asarray(point), lambda x: x + 1)
316 assert isinstance(actual, np.ndarray)
317 assert actual.ndim == 0
318
319
320def test_transform_no_geoms():

Callers

nothing calls this directly

Calls 1

transformFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…