Conversation
There was a problem hiding this comment.
Looking good, but I agree we need to avoid the message when "just" importing iris.fileformats.
As with the other deprecations, I'd also like to be sure @lbdreyer had a chance to OK this.
That warning on any use of iris.fileformats happens because Iris imports abf to populate its file format handler structures.
I think it still makes sense to issue the warning whenever abf is imported, so I think the
nice way is to use a deferred import within a wrapper function.
I think I will propose something similar as a PR to your branch...
See wjbenfold#2 |
I love the elegance of this solution |
I'm fine with this. If we are happy to reverse the decision (or perhaps come up with an alternative!) should someone say they are still using it then that is fine. |
88b065a to
0942757
Compare
|
hi @wjbenfold I think that's also why you are getting the docs-build fail : So the examples hit a deprecation warning when importing iris.fileformats, and that --> error in the docs build |
|
Ah, didn't pull before the rebase, will do that |
0942757 to
3389037
Compare
|
I believe that this is ready now @pp-mo |
🚀 Pull Request
Description
See #4394
To do:
Consult Iris pull request check list