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

Method test_argmax

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

Source from the content-addressed store, hash-verified

240 self.assertEqual(expect, result)
241
242 def test_argmax(self):
243 expect = make_expression_graph({
244 'arguments': {
245 'array': ARRAY_ONE,
246 },
247 'functionName': 'Array.argmax',
248 })
249 expression = ee.Array([1]).argmax()
250 result = json.loads(expression.serialize())
251 self.assertEqual(expect, result)
252
253 def test_asin(self):
254 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

argmaxMethod · 0.80
make_expression_graphFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected