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

Method isVariable

python/ee/computedobject.py:190–194  ·  view source on GitHub ↗

Returns whether this computed object is a variable reference.

(self)

Source from the content-addressed store, hash-verified

188 return f'ee.{self.name()}({serializer.toReadableJSON(self)})'
189
190 def isVariable(self) -> bool:
191 """Returns whether this computed object is a variable reference."""
192 # We can't just check for varName != null, since we allow that
193 # to remain null until for CustomFunction.resolveNamelessArgs_().
194 return self.func is None and self.args is None
195
196 def aside(self, func: Any, *var_args) -> ComputedObject:
197 """Calls a function passing this object as the first argument.

Callers 15

encodeMethod · 0.95
encode_cloud_valueMethod · 0.95
test_initMethod · 0.80
test_naive_bayes_argsMethod · 0.80
test_blobMethod · 0.80
test_inner_joinMethod · 0.80
test_simple_joinMethod · 0.80
test_dateMethod · 0.80
test_simpleMethod · 0.80
test_initMethod · 0.80
test_initMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_initMethod · 0.64
test_naive_bayes_argsMethod · 0.64
test_blobMethod · 0.64
test_inner_joinMethod · 0.64
test_simple_joinMethod · 0.64
test_dateMethod · 0.64
test_simpleMethod · 0.64
test_initMethod · 0.64
test_initMethod · 0.64
test_init_no_orderMethod · 0.64
test_init_allMethod · 0.64