Skip to content

Commit

Permalink
Fix incorrect progress callback in xr_load
Browse files Browse the repository at this point in the history
Should not reset back to 1 for each ban
  • Loading branch information
Kirill888 authored and mergify[bot] committed Apr 16, 2019
1 parent 2353856 commit acda70e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datacube/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,14 +496,15 @@ def _cbk(*ignored):
return _cbk

data = Datacube.create_storage(sources.coords, geobox, measurements)
_cbk = mk_cbk(progress_cbk)

for index, datasets in numpy.ndenumerate(sources.values):
for m in measurements:
t_slice = data[m.name].values[index]

_fuse_measurement(t_slice, datasets, geobox, m,
skip_broken_datasets=skip_broken_datasets,
progress_cbk=mk_cbk(progress_cbk))
progress_cbk=_cbk)

return data

Expand Down

0 comments on commit acda70e

Please sign in to comment.