Skip to content
Snippets Groups Projects

ADD: .gitlab-ci.yml

Merged Rémi Cresson requested to merge 9-add_ci into master
1 unresolved thread
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -21,7 +21,7 @@ assert compared.mse == 0
thresholded_indices = pyotb.where(ndvi_indices >= 0.3, 1, 0)
thresholded_bandmath = pyotb.where(ndvi_bandmath >= 0.3, 1, 0)
assert thresholded_indices.exp == '((im1b1 >= 0.3) ? 1 : 0)'
assert thresholded_indices.exp == '((((im1b4 - im1b3) / (im1b4 + im1b3)) > 0.3) ? 1 : 0)'
assert thresholded_bandmath.exp == '((((im1b4 - im1b3) / (im1b4 + im1b3)) > 0.3) ? 1 : 0)'
# Sum of bands
summed = sum(inp[:, :, b] for b in range(inp.shape[-1]))
Loading