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

Method initialize

python/ee/apifunction.py:160–171  ·  view source on GitHub ↗

Initializes the list of signatures from the Earth Engine front-end.

(cls)

Source from the content-addressed store, hash-verified

158
159 @classmethod
160 def initialize(cls) -> None:
161 """Initializes the list of signatures from the Earth Engine front-end."""
162 if not cls._api:
163 signatures = data.getAlgorithms()
164 api = {}
165 for name, sig in signatures.items():
166 # Strip type parameters.
167 sig['returns'] = re.sub('<.*>', '', sig['returns'])
168 for arg in sig['args']:
169 arg['type'] = re.sub('<.*>', '', arg['type'])
170 api[name] = cls(name, sig)
171 cls._api = api
172
173 @classmethod
174 def reset(cls) -> None:

Callers 4

allSignaturesMethod · 0.45
unboundFunctionsMethod · 0.45
lookupInternalMethod · 0.45
importApiMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected