From cac88f94e1c0681d3511a9dc12d68ee88a9e57bc Mon Sep 17 00:00:00 2001 From: Kirill Kouzoubov Date: Tue, 28 May 2024 21:31:50 +1000 Subject: [PATCH] Tweak variable names for clarity --- odc/loader/_builder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/odc/loader/_builder.py b/odc/loader/_builder.py index 0181bbb..08e8689 100644 --- a/odc/loader/_builder.py +++ b/odc/loader/_builder.py @@ -218,12 +218,12 @@ def __call__( src_key = f"open-{name}-{tk}" shape_in_blocks = tuple(len(ch) for ch in chunks) - for src_idx, src in enumerate(self.srcs): - band = src.get(name, None) - if band is not None: + for src_idx, mbsrc in enumerate(self.srcs): + rsrc = mbsrc.get(name, None) + if rsrc is not None: dsk[src_key, src_idx] = ( _dask_open_reader, - band, + rsrc, self.rdr, self.env, load_state,