@@ -2338,7 +2338,7 @@ def save_result(
2338
2338
Materialize the processed data to the given file format.
2339
2339
2340
2340
:param format: an output format supported by the backend.
2341
- :param options: file format options
2341
+ :param options: (optional) file format options
2342
2342
2343
2343
.. versionchanged:: 0.39.0
2344
2344
returns a :py:class:`~openeo.rest.result.SaveResult` instance instead
@@ -2384,22 +2384,25 @@ def download(
2384
2384
job_options : Optional [dict ] = None ,
2385
2385
) -> Union [None , bytes ]:
2386
2386
"""
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.
2388
2389
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 .
2391
2392
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
2396
2397
(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
2400
2401
(under top-level property "job_options")
2401
2402
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.
2403
2406
2404
2407
.. versionchanged:: 0.32.0
2405
2408
Added ``auto_add_save_result`` option
@@ -2544,24 +2547,27 @@ def execute_batch(
2544
2547
for batch jobs that are expected to complete
2545
2548
in a time that is reasonable for your use case.
2546
2549
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.
2553
2556
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
2556
2559
(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
2558
2561
(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.
2560
2563
: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.
2562
2565
One of "error" (highest severity), "warning", "info", and "debug" (lowest severity).
2563
2566
:param max_poll_interval: maximum number of seconds to sleep between job status polls
2564
2567
: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.
2565
2571
2566
2572
.. versionchanged:: 0.32.0
2567
2573
Added ``auto_add_save_result`` option
@@ -2632,22 +2638,22 @@ def create_job(
2632
2638
Use :py:meth:`execute_batch` instead to let the openEO Python client
2633
2639
take care of the full job life cycle: create, start and track its progress until completion.
2634
2640
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.
2640
2646
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
2643
2649
(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
2645
2651
(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.
2648
2654
One of "error" (highest severity), "warning", "info", and "debug" (lowest severity).
2649
2655
2650
- :return: Created job.
2656
+ :return: Handle to the job created at the backend .
2651
2657
2652
2658
.. versionchanged:: 0.32.0
2653
2659
Added ``auto_add_save_result`` option
0 commit comments