Skip to content

Commit 5c767a8

Browse files
authored
add some debug logs (#22)
1 parent 6883cb8 commit 5c767a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xarray_esgf/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import asyncio
22
import dataclasses
3+
import logging
34
from collections import defaultdict
45
from collections.abc import Callable, Iterable
56
from functools import cached_property
@@ -25,6 +26,8 @@
2526
"version",
2627
]
2728

29+
LOGGER = logging.getLogger()
30+
2831

2932
def use_new_combine_kwarg_defaults[**P, T](func: Callable[P, T]) -> Callable[P, T]:
3033
def wrapper(*args: P.args, **kwds: P.kwargs) -> T:
@@ -159,6 +162,7 @@ def open_dataset(
159162
])
160163
ds = ds.expand_dims({dim: [dataset_id_dict[dim]] for dim in concat_dims})
161164
combined_datasets[dataset_id] = ds
165+
LOGGER.debug(f"{dataset_id}: {dict(ds.sizes)}")
162166

163167
obj = xr.combine_by_coords(
164168
combined_datasets.values(),

0 commit comments

Comments
 (0)