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

Method test_array_dot_product

python/ee/tests/image_test.py:1008–1022  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1006 self.assertEqual(expect, result)
1007
1008 def test_array_dot_product(self):
1009 expect = make_expression_graph({
1010 'arguments': {
1011 'image1': IMAGE,
1012 'image2': IMAGE_B,
1013 },
1014 'functionName': 'Image.arrayDotProduct',
1015 })
1016 expression = ee.Image('a').arrayDotProduct('b')
1017 result = json.loads(expression.serialize())
1018 self.assertEqual(expect, result)
1019
1020 expression = ee.Image('a').arrayDotProduct(image2='b')
1021 result = json.loads(expression.serialize())
1022 self.assertEqual(expect, result)
1023
1024 def test_array_flatten(self):
1025 coordinate_labels = ['b', 'c']

Callers

nothing calls this directly

Calls 3

arrayDotProductMethod · 0.80
make_expression_graphFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected