mirror of
https://github.com/Skyai-io/landsat-util.git
synced 2026-03-10 09:01:18 +00:00
After I adjusted imports to be absolute, the rest of the work was sorting out the distinction between bytes and strs. The uploader was written for strings of bytes and needed to be changed to actual bytes. Closes #170
14 lines
289 B
Python
14 lines
289 B
Python
import warnings
|
|
|
|
import rasterio
|
|
|
|
|
|
def rasterio_decorator(func):
|
|
def wrapped_f(*args, **kwargs):
|
|
with warnings.catch_warnings():
|
|
warnings.simplefilter("ignore")
|
|
with rasterio.drivers():
|
|
return func(*args, **kwargs)
|
|
|
|
return wrapped_f
|