Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wpreimes committed Jan 17, 2024
1 parent 4016104 commit 503cc2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changelog
Unreleased changes in master branch
===================================

-
- Added option to parallelize Img2Ts process

Version 0.10
============
Expand Down
9 changes: 3 additions & 6 deletions src/repurpose/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ class ImageBaseConnection:
This protects against processing gaps due to e.g. temporary network issues.
"""

def __init__(self, reader, max_retries=20, retry_delay_s=10):
def __init__(self, reader, max_retries=99, retry_delay_s=1):
"""
Parameters
----------
reader: MultiTemporalImageBase
Reader object for which the filelist is created
max_retries: int
max_retries: int, optional (default: 10)
Number of retries when a file is in the filelist but reading
fails.
retry_delay_s: int
retry_delay_s: int, optional (default: 1)
Number of seconds to wait after each failed retry.
"""
self.reader = reader
Expand Down Expand Up @@ -76,9 +76,6 @@ def read(self, timestamp, **kwargs):
if filename is None:
filename = self.reader._build_filename(timestamp)
img = self.reader.read(timestamp, **kwargs)
# except IOError as e:
# error = e
# break
except Exception as e:
logging.error(f"Error reading file (try {retry+1}) "
f"at {timestamp}: {e}. "
Expand Down

0 comments on commit 503cc2b

Please sign in to comment.