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

Error running the code #5

Closed
mrymsadeghi opened this issue Mar 12, 2020 · 1 comment
Closed

Error running the code #5

mrymsadeghi opened this issue Mar 12, 2020 · 1 comment

Comments

@mrymsadeghi
Copy link

Hi ,
I can't open the images, I run into this error.

Traceback (most recent call last):
File "C:/Users/q371ms/PycharmProjects/MouseBrain/tempo5.py", line 16, in
CziFile.plot_image(czifile.read_image(), figno=4, show=False)
File "C:\Users\q371ms\PycharmProjects\MouseBrain\venv\lib\site-packages\pylibczi\CziFile.py", line 108, in read_image
img = np.squeeze(self.czilib.CziFile(self.czi_filename).asarray())
File "C:\Users\q371ms\PycharmProjects\MouseBrain\venv\lib\site-packages\czifile\czifile.py", line 443, in asarray
out = create_output(out, self.shape, self.dtype)
File "C:\Users\q371ms\PycharmProjects\MouseBrain\venv\lib\site-packages\tifffile\tifffile.py", line 11044, in create_output
return numpy.zeros(shape, dtype)
MemoryError: Unable to allocate array with shape (6, 3, 27777, 68044, 1) and data type uint16

@elhuhdron
Copy link
Owner

The error means you're out of memory, i.e., the image is too large for you to view at once on your machine. Regardless, as noted in the udpated README, please try the aicspylibczi fork as it contains many new features that improve greatly on the original. This branch has a scale factor feature where you could load a downsampled version that would take less memory.

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

2 participants