MCPcopy Index your code
hub / github.com/google/earthengine-api / __init__

Method __init__

python/ee/apifunction.py:44–57  ·  view source on GitHub ↗

Creates a function defined by the EE API. Args: name: The name of the function. signature: The signature of the function. If unspecified, looked up dynamically.

(self, name: str, signature: dict[str, Any] | None = None)

Source from the content-addressed store, hash-verified

42
43 @_utils.accept_opt_prefix('opt_signature')
44 def __init__(self, name: str, signature: dict[str, Any] | None = None):
45 """Creates a function defined by the EE API.
46
47 Args:
48 name: The name of the function.
49 signature: The signature of the function. If unspecified, looked up
50 dynamically.
51 """
52 if signature is None:
53 signature = ApiFunction.lookup(name).getSignature()
54
55 # The signature of this API function.
56 self._signature = copy.deepcopy(signature)
57 self._signature['name'] = name
58
59 def __eq__(self, other: Any) -> bool:
60 return (isinstance(other, ApiFunction) and

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.80
getSignatureMethod · 0.45

Tested by

no test coverage detected