@@ -2338,7 +2338,7 @@ def save_result(
23382338 Materialize the processed data to the given file format.
23392339
23402340 :param format: an output format supported by the backend.
2341- :param options: file format options
2341+ :param options: (optional) file format options
23422342
23432343 .. versionchanged:: 0.39.0
23442344 returns a :py:class:`~openeo.rest.result.SaveResult` instance instead
@@ -2384,22 +2384,25 @@ def download(
23842384 job_options : Optional [dict ] = None ,
23852385 ) -> Union [None , bytes ]:
23862386 """
2387- Execute synchronously and download the raster data cube, e.g. as GeoTIFF.
2387+ Send the underlying process graph to the backend
2388+ for synchronous processing and directly download the result.
23882389
2389- If outputfile is provided, the result is stored on disk locally, otherwise, a bytes object is returned .
2390- The bytes object can be passed on to a suitable decoder for decoding .
2390+ If `` outputfile`` is provided, the result is downloaded to that path .
2391+ Otherwise a :py:class:` bytes` object is returned with the raw data .
23912392
2392- :param outputfile: Optional, output path to download to.
2393- :param format: Optional, an output format supported by the backend.
2394- :param options: Optional, file format options
2395- :param validate: Optional toggle to enable/prevent validation of the process graphs before execution
2393+ :param outputfile: (optional) output path to download to.
2394+ :param format: (optional) an output format supported by the backend.
2395+ :param options: (optional) file format options
2396+ :param validate: (optional) toggle to enable/prevent validation of the process graphs before execution
23962397 (overruling the connection's ``auto_validate`` setting).
2397- :param auto_add_save_result: Automatically add a ``save_result`` node to the process graph.
2398- :param additional: additional (top-level) properties to set in the request body
2399- :param job_options: dictionary of job options to pass to the backend
2398+ :param auto_add_save_result: whether to automatically add a ``save_result`` node to the process graph.
2399+ :param additional: (optional) additional (top-level) properties to set in the request body
2400+ :param job_options: (optional) dictionary of job options to pass to the backend
24002401 (under top-level property "job_options")
24012402
2402- :return: None if the result is stored to disk, or a bytes object returned by the backend.
2403+ :return: if ``outputfile`` was not specified:
2404+ a :py:class:`bytes` object containing the raw data.
2405+ Otherwise, ``None`` is returned.
24032406
24042407 .. versionchanged:: 0.32.0
24052408 Added ``auto_add_save_result`` option
@@ -2544,24 +2547,27 @@ def execute_batch(
25442547 for batch jobs that are expected to complete
25452548 in a time that is reasonable for your use case.
25462549
2547- :param outputfile: Optional, output path to download to.
2548- :param out_format: (optional) File format to use for the job result.
2549- :param title: job title.
2550- :param description: job description.
2551- :param plan: The billing plan to process and charge the job with
2552- :param budget: Maximum budget to be spent on executing the job.
2550+ :param outputfile: (optional) output path to download to.
2551+ :param out_format: (optional) file format to use for the job result.
2552+ :param title: (optional) job title.
2553+ :param description: (optional) job description.
2554+ :param plan: (optional) the billing plan to process and charge the job with.
2555+ :param budget: (optional) maximum budget to be spent on executing the job.
25532556 Note that some backends do not honor this limit.
2554- :param additional: additional (top-level) properties to set in the request body
2555- :param job_options: dictionary of job options to pass to the backend
2557+ :param additional: (optional) additional (top-level) properties to set in the request body
2558+ :param job_options: (optional) dictionary of job options to pass to the backend
25562559 (under top-level property "job_options")
2557- :param validate: Optional toggle to enable/prevent validation of the process graphs before execution
2560+ :param validate: (optional) toggle to enable/prevent validation of the process graphs before execution
25582561 (overruling the connection's ``auto_validate`` setting).
2559- :param auto_add_save_result: Automatically add a ``save_result`` node to the process graph.
2562+ :param auto_add_save_result: whether to automatically add a ``save_result`` node to the process graph.
25602563 :param show_error_logs: whether to automatically print error logs when the batch job failed.
2561- :param log_level: Optional minimum severity level for log entries that the back-end should keep track of.
2564+ :param log_level: (optional) minimum severity level for log entries that the back-end should keep track of.
25622565 One of "error" (highest severity), "warning", "info", and "debug" (lowest severity).
25632566 :param max_poll_interval: maximum number of seconds to sleep between job status polls
25642567 :param connection_retry_interval: how long to wait when status poll failed due to connection issue
2568+ :param print: print/logging function to show progress/status
2569+
2570+ :return: Handle to the job created at the backend.
25652571
25662572 .. versionchanged:: 0.32.0
25672573 Added ``auto_add_save_result`` option
@@ -2632,22 +2638,22 @@ def create_job(
26322638 Use :py:meth:`execute_batch` instead to let the openEO Python client
26332639 take care of the full job life cycle: create, start and track its progress until completion.
26342640
2635- :param out_format: output file format.
2636- :param title: job title.
2637- :param description: job description.
2638- :param plan: The billing plan to process and charge the job with.
2639- :param budget: Maximum budget to be spent on executing the job.
2641+ :param out_format: (optional) file format to use for the job result .
2642+ :param title: (optional) job title.
2643+ :param description: (optional) job description.
2644+ :param plan: (optional) the billing plan to process and charge the job with.
2645+ :param budget: (optional) maximum budget to be spent on executing the job.
26402646 Note that some backends do not honor this limit.
2641- :param additional: additional (top-level) properties to set in the request body
2642- :param job_options: dictionary of job options to pass to the backend
2647+ :param additional: (optional) additional (top-level) properties to set in the request body
2648+ :param job_options: (optional) dictionary of job options to pass to the backend
26432649 (under top-level property "job_options")
2644- :param validate: Optional toggle to enable/prevent validation of the process graphs before execution
2650+ :param validate: (optional) toggle to enable/prevent validation of the process graphs before execution
26452651 (overruling the connection's ``auto_validate`` setting).
2646- :param auto_add_save_result: Automatically add a ``save_result`` node to the process graph.
2647- :param log_level: Optional minimum severity level for log entries that the back-end should keep track of.
2652+ :param auto_add_save_result: whether to automatically add a ``save_result`` node to the process graph.
2653+ :param log_level: (optional) minimum severity level for log entries that the back-end should keep track of.
26482654 One of "error" (highest severity), "warning", "info", and "debug" (lowest severity).
26492655
2650- :return: Created job.
2656+ :return: Handle to the job created at the backend .
26512657
26522658 .. versionchanged:: 0.32.0
26532659 Added ``auto_add_save_result`` option
0 commit comments