Skip to content

Commit

Permalink
Merge pull request #41 from brazil-data-cube/master
Browse files Browse the repository at this point in the history
Update branch b-0.4 to release 0.4.1
  • Loading branch information
raphaelrpl authored Jul 6, 2021
2 parents 0cd6e86 + 30e961e commit d2ed92f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bdc_collectors/creodias/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"""Defines the structures for CREODIAS API."""

import concurrent
import concurrent.futures
import os
from typing import List

Expand Down
1 change: 1 addition & 0 deletions bdc_collectors/creodias/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import requests

from ..base import SceneResult
from ..exceptions import DownloadError
from ..utils import download_stream

DateT = Union[str, datetime]
Expand Down
5 changes: 4 additions & 1 deletion bdc_collectors/scihub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ def download(self, scene_id: str, output: str, **kwargs) -> str:
# When parallel support set, get an available client from Redis
if self.parallel:
client = self.clients.get_user()
options = dict(show_progressbars=self.progress)
if self.kwargs.get('api_url'):
options['api_url'] = self.kwargs['api_url']

api = SentinelAPI(client.username, client.password, show_progressbars=self.progress)
api = SentinelAPI(client.username, client.password, **options)

uuid = list(meta)[0]

Expand Down

0 comments on commit d2ed92f

Please sign in to comment.