You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like unintended behavior at a first glance. Because at least one test in test_pil.py is "secretly" using tifffile's imread. The autofixture calling and setting the plugin order via use_plugin("pil") has no effect here.
Forcing the correct plugin with plugin="pil" in this line will make the test fail because of the wrong dtype >u2 (big) were apparently <u2 (little) is expected? I'm not sure if this is the original intention of the test...
Description:
If
plugin=None
(default) and a path ending in.tif
are passed toskimage.io.imread
the plugin order is ignored because of these linesscikit-image/skimage/io/_io.py
Lines 54 to 56 in f4c1b34
This looks like unintended behavior at a first glance. Because at least one test in
test_pil.py
is "secretly" using tifffile's imread. The autofixture calling and setting the plugin order viause_plugin("pil")
has no effect here.Forcing the correct plugin with
plugin="pil"
in this line will make the test fail because of the wrong dtype>u2
(big) were apparently<u2
(little) is expected? I'm not sure if this is the original intention of the test...Test output
Putting a
raise
in tifffile's imread shows that the following tests use the wrong plugin:The text was updated successfully, but these errors were encountered: