Repository navigation
MAINT: Deprecation warnings to transition to v3 - #769
Conversation
| warnings.warn( | ||
| "ImageIO's vendored tifffile backend is deprecated and will be" | ||
| " removed in ImageIO v3. Install the tifffile directly:" | ||
| " `pip install imageio[tifffile]`", | ||
| DeprecationWarning | ||
| ) |
There was a problem hiding this comment.
Dito, under what circumstances does this warning occur?
There was a problem hiding this comment.
This will occur if a user loads a TIFF file and doesn't have tifffile installed.
I'm not 100% sure if we are making tifffile a primary dependency once we remove this. You will probably say we should, and the bioinformatics community will use it a lot, but for other scenarios it is rather optional. In most cases, it won't hurt to have it anyway but considering that there are use-cases with space concerns (e.g. the recently discussed freezing of apps) it might be better to keep things that can be optional optional.
|
@almarklein Do you remember what we decided for the plugin resolution logic of v2 plugins? I remember that we wanted to serve v3 plugins through the v2 API, but I don't remember if we want to keep v2-unique resolution logic. Should we deprecate it and resolve plugins using the same rules as v3? (Sounds more maintainable to me) |
I think we wanted to keep the selection logic for backwards compatibility, right? There should not be much maintenance, since the |
5dc2ae5 to
c18c226
Compare
|
@almarklein This one is also RTR. I'm trying to find the parts we are missing to get the patch coverage to 100%, but since it touches files that aren't fully covered this is proving more laborsome than expected. I will update the ones I find, but am happy otherwise since overall coverage improves. |
This PR adds deprecation warnings to inform users about API changes that will happen once take the step to v3 and how to deal with them.
It also reformats our testsuite to deal with the warnings by
import imageiotoimport imageio.v2 as iiowhere applicabledeprecated_testfixture that suppresses warnings for tests that will be removed when deprecated functions disappear (mainly related to the old format manager)iiothroughout the test-suite