Skip to content

Concatenating DataArrays is not always lazy #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shoyer opened this issue Jul 10, 2015 · 0 comments
Closed

Concatenating DataArrays is not always lazy #464

shoyer opened this issue Jul 10, 2015 · 0 comments
Labels

Comments

@shoyer
Copy link
Member

shoyer commented Jul 10, 2015

import dask.array as da
from xray import DataArray, concat
from xray.test import InaccessibleArray
import numpy as np
arrays = [DataArray(
    da.from_array(InaccessibleArray(np.zeros((3, 3))), 3),
    dims=['x', 'y']) for _ in range(2)]
combined = concat(arrays, dim='z')
UnexpectedDataAccess: Tried accessing data

related: #438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant