scripts/download_sen12.py
def _export_try_except_loop(self,attempts):
        '''
        Helper function that enables the pipeline to wait a certain number of minutes after a GEE error
        instead of erroring out
        '''
        try:
            # export_single_feature function not created for object yet
            export = self.export_single_feature()
            self.exports.append(export)
        except Exception as e:
            if self.debug:
                attempts += 1
                logging_timestamp = "_".join(time.ctime().split(" ")[1:])
                logging.info(f'{logging_timestamp}: Timeout #{attempts}; retrying in {self._minutes_to_wait} minutes')
            print(f'{e}; please wait for {self._minutes_to_wait} minutes', end='\r', flush=True)
            self.exceptions.append(e)
            # wait 60 minutes
            time.sleep(60 * self._minutes_to_wait)

            self.export_try_except_loop(attempts=attempts)

        Helper function that enables the pipeline to wait a certain number of minutes after a GEE error
        instead of erroring out
        
Helper function that enables the pipeline to wait a certain number of minutes after a GEE error
instead of erroring out
Helper function that enables the pipeline to wait a certain number of minutes after a GEE error instead of erroring out
def _export_try_except_loop(self,attempts):
        try:
            export = self.export_single_feature()
            self.exports.append(export)
        except Exception as e:
            if self.debug:
                attempts += 1
                logging_timestamp = "_".join(time.ctime().split(" ")[1:])
                logging.info(f'{logging_timestamp}: Timeout #{attempts}; retrying in {self._minutes_to_wait} minutes')
            print(f'{e}; please wait for {self._minutes_to_wait} minutes', end='\r', flush=True)
            self.exceptions.append(e)
            time.sleep(60 * self._minutes_to_wait)
            self.export_try_except_loop(attempts=attempts)
def _export_try_except_loop ( self , attempts ) : try : export = self . export_single_feature ( ) self . exports . append ( export ) except Exception as e : if self . debug : attempts += 1 logging_timestamp = "_" . join ( time . ctime ( ) . split ( " " ) [ 1 : ] ) logging . info ( f'{logging_timestamp}: Timeout #{attempts}; retrying in {self._minutes_to_wait} minutes' ) print ( f'{e}; please wait for {self._minutes_to_wait} minutes' , end = '\r' , flush = True ) self . exceptions . append ( e ) time . sleep ( 60 * self . _minutes_to_wait ) self . export_try_except_loop ( attempts = attempts )
Helper function that enables the pipeline to wait a certain number of minutes after a GEE error
instead of erroring out
Helper function that enables the pipeline to wait a certain number of minutes after a GEE error instead of erroring out
'''
        Helper function that enables the pipeline to wait a certain number of minutes after a GEE error
        instead of erroring out
        ''' # export_single_feature function not created for object yet # wait 60 minutes
self
attempts