Skip to content

Commit

Permalink
set default timeout to 300
Browse files Browse the repository at this point in the history
  • Loading branch information
griembauer committed Feb 15, 2021
1 parent afe1465 commit ca09f33
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Options:
-u, --username TEXT EarthExplorer username.
-p, --password TEXT EarthExplorer password.
-o, --output PATH Output directory (default to current).
-t, --timeout INTEGER Download timeout in seconds (default 60s).
-t, --timeout INTEGER Download timeout in seconds (default 300s).
--help Show this message and exit.
```

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Downloading
-u, --username TEXT EarthExplorer username.
-p, --password TEXT EarthExplorer password.
-o, --output PATH Output directory (default to current).
-t, --timeout INTEGER Download timeout in seconds (default 60s).
-t, --timeout INTEGER Download timeout in seconds (default 300s).
--help Show this message and exit.


Expand Down
2 changes: 1 addition & 1 deletion landsatxplore/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def search(username, password, dataset, location, bbox, clouds, start, end, outp
envvar='LANDSATXPLORE_PASSWORD')
@click.option('--output', '-o', type=click.Path(exists=True, dir_okay=True),
default='.', help='Output directory.')
@click.option('--timeout', '-t', type=click.INT, default=60,
@click.option('--timeout', '-t', type=click.INT, default=300,
help='Download timeout in seconds.')
@click.argument('scenes', type=click.STRING, nargs=-1)
def download(username, password, output, timeout, scenes):
Expand Down
2 changes: 1 addition & 1 deletion landsatxplore/earthexplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _download(self, url, output_dir, timeout, chunk_size=1024):
'Connection timeout after {} seconds.'.format(timeout))
return local_filename

def download(self, scene_id, output_dir, timeout=60):
def download(self, scene_id, output_dir, timeout=300):
"""Download a Landsat scene given its identifier and an output
directory.
"""
Expand Down

0 comments on commit ca09f33

Please sign in to comment.