Computes a list of images by applying a computation to features. Args: params: An object containing parameters with the following possible values: expression - The expression to compute. pageSize - The maximum number of results per page. The server may return fewer image
(params: dict[str, Any])
| 914 | |
| 915 | |
| 916 | def computeImages(params: dict[str, Any]) -> Any: |
| 917 | """Computes a list of images by applying a computation to features. |
| 918 | |
| 919 | Args: |
| 920 | params: An object containing parameters with the following possible values: |
| 921 | expression - The expression to compute. |
| 922 | pageSize - The maximum number of results per page. The server may return |
| 923 | fewer images than requested. If unspecified, the page size default is |
| 924 | 1000 results per page. |
| 925 | pageToken - A token identifying a page of results the server should |
| 926 | return. |
| 927 | workloadTag - User supplied tag to track this computation. |
| 928 | |
| 929 | Returns: |
| 930 | A list with the results of the computation. |
| 931 | """ |
| 932 | params = params.copy() |
| 933 | params['expression'] = serializer.encode(params['expression']) |
| 934 | _maybe_populate_workload_tag(params) |
| 935 | return _execute_cloud_call( |
| 936 | _get_cloud_projects() |
| 937 | .imageCollection() |
| 938 | .computeImages(project=_get_projects_path(), body=params) |
| 939 | ) |
| 940 | |
| 941 | |
| 942 | def computeFeatures(params: dict[str, Any]) -> Any: |
nothing calls this directly
no test coverage detected