Commit fddbb2e8 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

FIX: minor fix on input parsing.

parent 68fc2053
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -811,7 +811,7 @@ class S2TheiaPipeline: ...@@ -811,7 +811,7 @@ class S2TheiaPipeline:
d = datetime.datetime.strptime(align_to, '%Y%m%d') d = datetime.datetime.strptime(align_to, '%Y%m%d')
t.rigid_align(ref_date=align_to, match_band=align_using_band-1) t.rigid_align(ref_date=align_to, match_band=align_using_band-1)
except: except:
warnings.warn("Provided string is not a valid date nor a valid file.") raise ValueError("Provided string is not a valid date nor a valid file.")
elif align_to is None: elif align_to is None:
t.rigid_align(match_band=align_using_band-1) t.rigid_align(match_band=align_using_band-1)
t.reproject(self.output_epsg) t.reproject(self.output_epsg)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment