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

Method apply_

python/ee/apifunction.py:87–98  ·  view source on GitHub ↗

Call a named API function with a dictionary of named arguments. Args: name: The name of the API function to call. named_args: A dictionary of arguments to the function. Returns: An object representing the called function. If the signature specifies a recognized retu

(cls, name: str, named_args: dict[str, Any])

Source from the content-addressed store, hash-verified

85
86 @classmethod
87 def apply_(cls, name: str, named_args: dict[str, Any]) -> Any:
88 """Call a named API function with a dictionary of named arguments.
89
90 Args:
91 name: The name of the API function to call.
92 named_args: A dictionary of arguments to the function.
93
94 Returns:
95 An object representing the called function. If the signature specifies
96 a recognized return type, the returned value will be cast to that type.
97 """
98 return cls.lookup(name).apply(named_args)
99
100 def encode_invocation(self, encoder: Any) -> Any:
101 del encoder # Unused.

Callers 12

_linkCollectionMethod · 0.80
_apply_visualizationMethod · 0.80
renameMethod · 0.80
selectMethod · 0.80
dateMethod · 0.80
geometryMethod · 0.80
inListMethod · 0.80
getMapIdMethod · 0.80
limitMethod · 0.80
sortMethod · 0.80
test_get_mapMethod · 0.80

Calls 2

lookupMethod · 0.80
applyMethod · 0.45

Tested by 1

test_get_mapMethod · 0.64