Initializes the list of signatures from the Earth Engine front-end.
(cls)
| 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: |
no outgoing calls
no test coverage detected