Closed dpshepherd closed 2 years ago
I can send a link to example via email if helpful.
A link would be great. I do actually have a couple examples of sim data in my test suite, so if you have a failing example that'd be helpful
Emailed!
ok, it worked for me:
In [3]: nd2.imread('/Users/talley/Downloads/test_sim.nd2').shape
Out[3]: (3, 3072, 3072)
so it must have something to do with environment (and... I should have looked earlier, the line numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
indicates as much). This library is compiled with cython, so does require a specific numpy abi, and it's likely that i need to do a better job declaring that in my dependencies.
can you tell me your numpy version and preferably installation method?
also, just curious, is this the first file you tried? i.e. have any files worked for you?
On my laptop, nd2
loads this image and other images just fine.
I am hoping to also use this on Google Colab as part of tutorial, which is where I ran into this error. I haven't tried loading any other images on Colab.
Installation method: pip install nd2
Numpy version: 1.19.5
Ok, upgrading numpy worked! Thanks!
Should of thought of that myself...
good to know that that's how that error will manifest :) thanks for posting
Description
Load N-SIM data stored in nd2 file. The data is interesting, all of the angles/phases for a channel are in one image when I load via bioformats. I'm not sure if the nd2 sdk is trying to crop these into individual images?
What I Did
Try to load data using