MCPcopy Create free account
hub / github.com/pydata/xarray / test_ufunc_pickle

Method test_ufunc_pickle

xarray/tests/test_ufuncs.py:233–236  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 assert_identical(actual, expected)
232
233 def test_ufunc_pickle(self):
234 a = 1.0
235 cos_pickled = pickle.loads(pickle.dumps(xu.cos))
236 assert_identical(cos_pickled(a), xu.cos(a))
237
238 def test_ufunc_scalar(self):
239 actual = xu.sin(1)

Callers

nothing calls this directly

Calls 1

assert_identicalFunction · 0.70

Tested by

no test coverage detected