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 f1d808c commit 788b967Copy full SHA for 788b967
lib/iris/tests/test_basic_maths.py
@@ -596,13 +596,13 @@ def vec_mag(u, v):
596
def vec_mag_data_func(u_data, v_data):
597
return np.sqrt( u_data**2 + v_data**2 )
598
599
- vec_mag_ifunc = iris.analysis.maths.IFunc(vec_mag_data_func, lambda a,b: (a + b).units)
+ vec_mag_ifunc = iris.analysis.maths.IFunc(vec_mag_data_func,
600
+ lambda a, b: (a + b).units)
601
b2 = vec_mag_ifunc(a, c)
602
603
self.assertArrayAlmostEqual(b.data, b2.data)
604
- cs_ifunc = iris.analysis.maths.IFunc(np.cumsum,
605
- lambda a: a.units)
+ cs_ifunc = iris.analysis.maths.IFunc(np.cumsum, lambda a: a.units)
606
607
b = cs_ifunc(a, axis=1)
608
ans = a.data.copy()
0 commit comments