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

Method test_array_cat

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

Source from the content-addressed store, hash-verified

977 self.assertEqual(expect, result)
978
979 def test_array_cat(self):
980 axis = 1
981 expect = make_expression_graph({
982 'arguments': {
983 'image1': IMAGE,
984 'image2': IMAGE_B,
985 'axis': {'constantValue': axis},
986 },
987 'functionName': 'Image.arrayCat',
988 })
989 expression = ee.Image('a').arrayCat('b', axis)
990 result = json.loads(expression.serialize())
991 self.assertEqual(expect, result)
992
993 expression = ee.Image('a').arrayCat(image2='b', axis=axis)
994 result = json.loads(expression.serialize())
995 self.assertEqual(expect, result)
996
997 def test_array_dimensions(self):
998 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

arrayCatMethod · 0.80
make_expression_graphFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected