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

Method call

python/ee/function.py:51–63  ·  view source on GitHub ↗

Calls the function with the given positional and keyword arguments. Args: *args: The positional arguments to pass to the function. **kwargs: The named arguments to pass to the function. Returns: A ComputedObject representing the called function. If the signature spe

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

49 'Function subclasses must implement getSignature().')
50
51 def call(self, *args, **kwargs):
52 """Calls the function with the given positional and keyword arguments.
53
54 Args:
55 *args: The positional arguments to pass to the function.
56 **kwargs: The named arguments to pass to the function.
57
58 Returns:
59 A ComputedObject representing the called function. If the signature
60 specifies a recognized return type, the returned value will be cast
61 to that type.
62 """
63 return self.apply(self.nameArgs(args, kwargs))
64
65 def apply(self, named_args: dict[str, Any]) -> computedobject.ComputedObject:
66 """Calls the function with a dictionary of named arguments.

Callers 15

callFunction · 0.80
GenerateFunctionFunction · 0.80
call_Method · 0.80
MakeBoundFunctionMethod · 0.80
__init__Method · 0.80
test_call_and_applyMethod · 0.80
test_dynamic_classesMethod · 0.80
test_unbound_methodsMethod · 0.80
test_callMethod · 0.80

Calls 2

applyMethod · 0.95
nameArgsMethod · 0.95

Tested by 7

test_call_and_applyMethod · 0.64
test_dynamic_classesMethod · 0.64
test_unbound_methodsMethod · 0.64
test_callMethod · 0.64