Skip to content
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

z5::multiarray::{read,write}Subarray does not work correctly for xt::rarray #12

Open
gdkrmr opened this issue Feb 6, 2020 · 1 comment

Comments

@gdkrmr
Copy link
Owner

gdkrmr commented Feb 6, 2020

The following does not read or write the data correctly when complete chunks are read in, as in #10:

// xt::rarray<double> array(shape_);

    // xt::rarray<double> array(shape_);
    // z5::multiarray::readSubarray<double>(*ds, array, offset_.begin());
    // res = wrap(array);

// case z5::types::float64: { z5::multiarray::writeSubarray<double>(*ds, data_, offset_.begin()); break;};

    // case z5::types::int32:   { z5::multiarray::writeSubarray<int32_t>(*ds, data_, offset_.begin()); break;};
@gdkrmr
Copy link
Owner Author

gdkrmr commented Feb 11, 2020

TODO: figure out if this is really an issue or xtensor-r or just me using it the wrong way.

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

No branches or pull requests

1 participant