Skip to content

Fix icorrect tiff dimensions - #255

Merged
almarklein merged 3 commits into
masterfrom
tiff-dim
May 21, 2017
Merged

almarklein merged 3 commits into
masterfrom
tiff-dim

Conversation

@almarklein

Copy link
Copy Markdown
Member

Fixes #226 (hopefully)

cc @jni @blink1073

Does this look like a proper solution? What about the meta data?

@jni

jni commented May 21, 2017

Copy link
Copy Markdown
Contributor

@almarklein

In [1]: import imageio as iio
In [2]: im = iio.imread('E_z2_512_1um_CONTROL.tif')
In [3]: im.shape
Out[3]: (53, 3, 320, 512)

🎉

Thanks for the fix!

@jni

jni commented May 21, 2017

Copy link
Copy Markdown
Contributor

LOL Love the commit message btw. =D

@almarklein

almarklein commented May 21, 2017 •

Copy link
Copy Markdown
Member Author

Ok, I changed this a bit by making imageio.volread() return the multi-page data as a whole. Although "volume" might not be the right term in the context of TIFF files, the case that volread() exists for very closely matches this use-case. Plus it does not break backward compatibility.

So for @jni it should be im = iio.volread('E_z2_512_1um_CONTROL.tif').

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 92.676% when pulling ab0c435 on tiff-dim into 0e0be91 on master.

@jni

jni commented May 21, 2017

Copy link
Copy Markdown
Contributor

@almarklein I suppose I can live with this. =)

@blink1073

Copy link
Copy Markdown

Seems reasonable to me.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 92.676% when pulling d1692eb on tiff-dim into 0e0be91 on master.

@almarklein

Copy link
Copy Markdown
Member Author

Great. I added docs to explain the new behavior.

@almarklein
almarklein merged commit 48e8197 into master May 21, 2017
@almarklein
almarklein deleted the tiff-dim branch May 21, 2017 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants