Skip to content
Snippets Groups Projects
Commit 47df6bdb authored by Jeremy Commins's avatar Jeremy Commins
Browse files

Add a 2 seconds pause when a file is downloaded before going on.

parent e77cdfaf
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
"""
Module for automatized downloading, processing and time series computing of new Sentinel-2 images.
"""
import time
import logging
import pandas as pd
import numpy as np
......@@ -223,6 +223,9 @@ class Automatization:
failed = prods.failed_products
if failed:
print(failed)
# When working on a local network storage, pause the process in
# order to let the file to be checked by the filesystem (lags).
time.sleep(2)
self._update_df()
self._save_csv()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment