-
Notifications
You must be signed in to change notification settings - Fork 82
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
File type piracy #172
Comments
Yeah, this is an unfortunate side effect of the way FileIO is designed, which makes it difficult to call the more general loader if a more specific loader exists for a given type. I thought this might've been #160 resurfacing, but the file in that test is an As a stopgap, it should be possible to force opening with |
Yep, that's exactly the sort of thing I'm doing now. Thanks! |
This issue only affects the backend writer and should only happen when tested locally because OMETIFF exists in your root project. In a CI environment, you generally won't have unrelated backends installed so it would not be affected. As #172 (comment) is suggested, this can be easily worked around by calling the specific loader. This issue also occurs when the backend writer somehow triggers a recursive call "incorrectly" to # in MIDI.jl
@deprecate writeMIDIFile(filename::AbstractString, data::MIDIFile) FileIO.save(filename, data) The problem with this |
(Not sure if that's the best title for this issue)
In tracking down a recent test failure in QuartzImageIO here, it finally dawned on me that the test image was now being assigned color channels (and an extra dimension). The reason is that FileIO is using OMETIFF for this particular file.
This is a fun error, because the mere existence of the OMETIFF.jl package broke that test, even though it wasn't being used in my package at all.
To be clear, I'm not upset about this at all-- @tlnagy's OMETIFF.jl is great, because I happen to use .ome.tiffs all the time. That fact probably helped me track down this problem quickly. But we may want to figure out how to prevent this in the future.
The text was updated successfully, but these errors were encountered: