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

Method call_

python/ee/apifunction.py:72–84  ·  view source on GitHub ↗

Call a named API function with positional and keyword arguments. Args: name: The name of the API function to call. *args: Positional arguments to pass to the function. **kwargs: Keyword arguments to pass to the function. Returns: An object representing the called fu

(cls, name: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

70
71 @classmethod
72 def call_(cls, name: str, *args: Any, **kwargs: Any) -> Any:
73 """Call a named API function with positional and keyword arguments.
74
75 Args:
76 name: The name of the API function to call.
77 *args: Positional arguments to pass to the function.
78 **kwargs: Keyword arguments to pass to the function.
79
80 Returns:
81 An object representing the called function. If the signature specifies
82 a recognized return type, the returned value will be cast to that type.
83 """
84 return cls.lookup(name).call(*args, **kwargs)
85
86 @classmethod
87 def apply_(cls, name: str, named_args: dict[str, Any]) -> Any:

Callers 15

dimensionsMethod · 0.80
maxValueMethod · 0.80
minValueMethod · 0.80
precisionMethod · 0.80
doubleMethod · 0.80
floatMethod · 0.80
int16Method · 0.80
int32Method · 0.80
int64Method · 0.80
int8Method · 0.80
uint16Method · 0.80
uint32Method · 0.80

Calls 2

callMethod · 0.80
lookupMethod · 0.80

Tested by 11

test_computed_objectMethod · 0.64
test_internalsMethod · 0.64
test_computed_objectMethod · 0.64
test_dateMethod · 0.64
test_computed_objectMethod · 0.64
test_get_map_idMethod · 0.64
test_constructorsMethod · 0.64
test_metadataMethod · 0.64
test_dateMethod · 0.64
test_boundsMethod · 0.64