mirror of https://gitlab.com/pamhyr/pamhyr2
Results: Try add explicite import for rasterio.
parent
e2a65e2cdd
commit
70eae5f7d2
|
|
@ -21,9 +21,14 @@ import csv
|
|||
import logging
|
||||
try:
|
||||
import rasterio
|
||||
import rasterio.control
|
||||
import rasterio.crs
|
||||
import rasterio.sample
|
||||
import rasterio.vrt
|
||||
import rasterio._features
|
||||
_rasterio_loaded = True
|
||||
except Exception as e:
|
||||
print("Module 'rasterio' is not available")
|
||||
print(f"Module 'rasterio' is not available: {e}")
|
||||
_rasterio_loaded = False
|
||||
|
||||
from numpy import sqrt
|
||||
|
|
|
|||
Loading…
Reference in New Issue