Closed scholi closed 6 years ago
Just tested on my machine and your code ran fine to me. So I'm not entirely sure what the issue may be.
Here is the checksum for my A.nrrd file:
CRC32: FCEA06F2
CRC64: 9DBD195614BEA86E
SHA256: 416D87BB4A97C6C5D0990D3F60218EDE33A155EE0029B9FB9F4E68727D12D1C4
SHA1: 653AE35266C67D7E161DB98507B6687F1C275FFA
Here is a link to my A.nrrd. You can download it and do a diff if you want to see if there are any differences. https://addielli.com/A.nrrd
I did this on Windows 10 using Python 3.5.4. If you're on Linux, the line-endings are probably different and there will be differences there. (In which case the checksum will be different).
Once we can confirm that your writing process is the same, meaning my A.nrrd and your A.nrrd have the same data, then we should move on to your reading process. Since it's essentially using the zlib library in Python, I'm not sure it's any bug in the library but we can work on what the issue may be.
Can you give me more information on your machine: OS, Python version, library version (hopefully 0.3.2), etc.
In addition, here are some things to try to further debug the issue:
I have just noticed that I had an outdated version (v 0.2.1). It works fine with 0.3.2 I'm even able to read file that was written with the previous version. Still not sure why the old version couldn't open certain files correctly...
Anyway thank you for your help
I have some data GaAs. Saving them in nrrd format works, but I cannot restore them properly!
Am I doing something wrong or is this a bug with the library?
Thank you for your help and kind regards