MCPcopy
hub / github.com/google/earthengine-api / test_abs

Method test_abs

python/ee/tests/ee_array_test.py:166–175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

164 self.assertEqual(expect, result)
165
166 def test_abs(self):
167 expect = make_expression_graph({
168 'functionName': 'Array.abs',
169 'arguments': {
170 'input': ARRAY_ONE,
171 },
172 })
173 expression = ee.Array([1]).abs()
174 result = json.loads(expression.serialize())
175 self.assertEqual(expect, result)
176
177 def test_accum(self):
178 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

make_expression_graphFunction · 0.70
absMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected