Open william-silversmith opened 2 years ago
Here is a sample of the data I was trying to read. The block size should be 256x256x208
I looked quickly through pyn5 source since I haven't touched it in ages, and while this use case of reading a block from a buffer (while presumably providing the dataset attributes manually) is possible in rust-n5, I don't think the necessary interfaces are exposed in pyn5.
I ended up managing to do it by reading the n5 spec and using numpy for my super basic use case. Thanks for taking a look Andrew!
On Tue, Jul 19, 2022, 7:07 AM Andrew Champion @.***> wrote:
I looked quickly through pyn5 source since I haven't touched it in ages, and while this use case of reading a block from a buffer (while presumably providing the dataset attributes manually) is possible in rust-n5, I don't think the necessary interfaces are exposed in pyn5.
— Reply to this email directly, view it on GitHub https://github.com/pattonw/rust-pyn5/issues/175#issuecomment-1188918891, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATGQSLJYIIK6BXGNWMZIQ3VU2EAXANCNFSM53TONORA . You are receiving this because you authored the thread.Message ID: @.***>
@william-silversmith Could you please share how you did this?
Hi @sharmishtaa, you can find my implementation in CloudVolume here:
https://github.com/seung-lab/cloud-volume/tree/master/cloudvolume/datasource/n5
Description
Trying to read an existing N5 image chunk, but unable to figure out how to read in bytes. I was also unable to read in an existing file.
What I Did
Output:
I also tried to read from a file:
Output: