Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
clausmichele committed Jul 12, 2023
1 parent 6d068ce commit 8ebff89
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions openeo/local/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ def init_process_registry():

_log = logging.getLogger(__name__)
def load_local_collection(*args, **kwargs):
pretty_args = {k: type(v) for k, v in kwargs.items()}
_log.debug(f"Running process load_collection")
_log.debug(f"kwargs: {pretty_args}")
_log.debug("-" * 80)
pretty_args = {k: repr(v)[:80] for k, v in kwargs.items()}
_log.info(f"Running process load_collection")
_log.debug(
f"Running process load_collection with resolved parameters: {pretty_args}"
)
collection = Path(kwargs['id'])
if '.zarr' in collection.suffixes:
data = xr.open_dataset(kwargs['id'],chunks={},engine='zarr')
Expand Down Expand Up @@ -78,10 +79,7 @@ def load_local_collection(*args, **kwargs):
)

def resample_cube_spatial_rioxarray(data: RasterCube, target: RasterCube, method: str = "near") -> RasterCube:

_log.debug(f"Running process resample_cube_spatial")
_log.debug("-" * 80)

_log.info(f"Running process resample_cube_spatial")
methods_dict = {
"near": rasterio.enums.Resampling.nearest,
"bilinear": rasterio.enums.Resampling.bilinear,
Expand Down

0 comments on commit 8ebff89

Please sign in to comment.