Skip to content
Snippets Groups Projects

Resolve "Fix bug and errors related to date_range"

4 files
+ 12
14
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -73,7 +73,7 @@ def main(argv):
if mode == "DEBUG":
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, \
format='%(asctime)s - %(filename)s:%(lineno)s - %(levelname)s - %(message)s')
logging.debug("Debug is enable")
logging.debug("Debug is enabled")
tile_id = params.get("tile_id")
date_start = str_to_datetime(params.get("date_start"), "%d/%m/%Y")
@@ -104,7 +104,7 @@ def main(argv):
logging.debug("Ram is: {}".format(ram))
# Set maximum ITK threads
os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = str(params.get("nbThreads", 1))
os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = str(params.get("nb_threads", 1))
use_densification = params.get("use_densification", False)
if use_densification:
@@ -184,9 +184,8 @@ def main(argv):
logging.debug("Prepare call to compute_SOD_SMOD.py")
sod_file = os.path.join(path_tmp, "SOD_{}.tif".format(processing_id))
smod_file = os.path.join(path_tmp, "SMOD_{}.tif".format(processing_id))
date_range = date_stop - date_start
compute_SOD_SMOD(gapfilled_timeserie, date_range, sod_file=sod_file, smod_file=smod_file)
compute_SOD_SMOD(gapfilled_timeserie, sod_file=sod_file, smod_file=smod_file)
# run compute NOBS
logging.debug("Prepare call to compute_NOBS.py")
Loading