From 21354d821f86835b1f5742a6cb3050acacc5eafa Mon Sep 17 00:00:00 2001 From: Impact <pascal.mouquet@ird.fr> Date: Fri, 30 Nov 2018 12:04:26 +0400 Subject: [PATCH] Import OTB before GDAL (prevent GDAL version confict) --- sen2chain/cloud_mask.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sen2chain/cloud_mask.py b/sen2chain/cloud_mask.py index 490c305..cb5d68f 100755 --- a/sen2chain/cloud_mask.py +++ b/sen2chain/cloud_mask.py @@ -3,21 +3,21 @@ """ Module for computing cloud-mask from a sen2cor clouds classification raster. """ - import logging import pathlib from pathlib import Path import pyproj +import otbApplication import shapely.geometry from shapely.geometry import box, Polygon, MultiPolygon, GeometryCollection, mapping, shape from shapely.ops import transform import rasterio from rasterio.features import shapes, rasterize import numpy as np +from typing import Mapping, Sequence, AbstractSet, List, Set, Dict, Tuple, Optional, Union import gdal -import otbApplication + # type annotations -from typing import Mapping, Sequence, AbstractSet, List, Set, Dict, Tuple, Optional, Union from .config import Config -- GitLab