MCPcopy
hub / github.com/pydata/xarray / line

Method line

xarray/tests/test_dataarray.py:5064–5067  ·  view source on GitHub ↗
(x, a, b)

Source from the content-addressed store, hash-verified

5062
5063 # nonsense function to make the optimization fail
5064 def line(x, a, b):
5065 if a > 10:
5066 return 0
5067 return a * x + b
5068
5069 da = DataArray(
5070 [[1, 3, 5], [0, 20, 40]],

Calls

no outgoing calls

Tested by

no test coverage detected