You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SentinelHubRequest.get_data function return value differs in shape depending on the length of the responses input array.
It is a list of arrays, if one response is specified but a list of dicts, if two or more responses are specified. This change in API mimics the return value of the online-API (a response.tiff for one result and a response.tar containting tiffs for more than one) but is confusing on the python-end.
I personally agree with you that such a dynamic output is suboptiomal, however such changes would be very code-breaking for users. Currently there are no large changes planned in the near future, but we will keep the issue open, so that it is taken into consideration in the next large release.
Describe the bug
SentinelHubRequest.get_data
function return value differs in shape depending on the length of theresponses
input array.It is a list of arrays, if one response is specified but a list of dicts, if two or more responses are specified. This change in API mimics the return value of the online-API (a response.tiff for one result and a response.tar containting tiffs for more than one) but is confusing on the python-end.
To Reproduce
Steps to reproduce the behavior:
Assume the following setup:
Details
Expected behavior
The API should not change between the two examples. I.e. I suggest the retrieval from the first example would happen via
Environment
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: