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

Method test_select

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

Source from the content-addressed store, hash-verified

4159 self.assertEqual(expect, result)
4160
4161 def test_select(self):
4162 band_selectors = ['b', 'c']
4163 new_names = ['d', 'e']
4164 expect = make_expression_graph({
4165 'arguments': {
4166 'input': IMAGE,
4167 'bandSelectors': {'constantValue': band_selectors},
4168 'newNames': {'constantValue': new_names},
4169 },
4170 'functionName': 'Image.select',
4171 })
4172 expression = ee.Image('a').select(band_selectors, new_names)
4173 result = json.loads(expression.serialize())
4174 self.assertEqual(expect, result)
4175
4176 # var_args, so now kwargs.
4177

Callers

nothing calls this directly

Calls 3

make_expression_graphFunction · 0.70
selectMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected