Skip to content

Commit 628c0fa

Browse files
committed
use correct id
1 parent 99701fd commit 628c0fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xcube/webapi/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ def _open_ml_dataset(self, dataset_config: DatasetConfigDict) \
586586
dataset_config
587587
)
588588
if chunk_cache_capacity \
589-
and (ds_id.endswith('.zarr')
590-
or ds_id.endswith('.levels')) \
589+
and (data_id.endswith('.zarr')
590+
or data_id.endswith('.levels')) \
591591
and 'cache_size' not in open_params:
592592
open_params['cache_size'] = chunk_cache_capacity
593593
with self.measure_time(tag=f"opened dataset {ds_id!r}"

0 commit comments

Comments
 (0)