Skip to content

Commit

Permalink
fixed auto tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miniufo committed Oct 28, 2024
1 parent 950f147 commit b76aa58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xgrads/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,15 @@ def open_mfdataset(paths, parallel=False, encoding='GBK'):
print(datasets[0])
print(datasets[1])
print(datasets[2])
print(datasets[3])
print(parallel)
if parallel:
# calling compute here will return the datasets/file_objs lists,
# the underlying datasets will still be stored as dask arrays
datasets = dask.compute(datasets)
print(datasets[0])
print(datasets[1])
print(datasets[2])
print(parallel)

return xr.concat(datasets[0], dim='time')

Expand Down

0 comments on commit b76aa58

Please sign in to comment.