Replace skimage.io with imageio.v3 for reading/writing images.#238
Replace skimage.io with imageio.v3 for reading/writing images.#238tobyhodges merged 23 commits intodatacarpentry:gh-pagesfrom
skimage.io with imageio.v3 for reading/writing images.#238Conversation
|
Hi @mkcor thank you for the PR. I will review the specific changes in a moment, but first some responses to your introductory text.
It is ok to open the pull request without an associated issue but, given that the topic of switching
Sorry about that, and thanks for mentioning it 😬 I have now updated |
|
As mentioned in #239, please go ahead and make the relevant changes in this branch to replace When you come to make the other changes, please adjust the title of this pull request to reflect that it is now much more about the adoption of Thank you for driving this update - it is great to know that the lesson will be aligned with recommended practices for the scikit-image community. |
skimage.io with imageio.v3 for reading/writing images.
Co-authored-by: Toby Hodges <tbyhdgs@gmail.com>
Copying most of the reply here, to make the pull request thread easier for people to parse if they want to read through it in the future. |
tobyhodges
left a comment
There was a problem hiding this comment.
I only have one change to suggest, but otherwise this looks great. Thank you @mkcor.
As well as the setup file and the episodes, there is one "bonus episode" that we have been keeping in the _extras folder, about Edge Detection. Please could you also propagate the switch from skimage.io to imageio.v3 into that file?
|
@uschille the future of that extra Edge Detection episode is something that the Curriculum Advisory Committee could discuss at some stage, but I do not think it is urgent. I will open an issue and tag the CAC there. I also noticed that you wanted to discuss this transition from |
|
Thank you, @tobyhodges! Sure, I still need to update episode 03 as well. |
Co-authored-by: Toby Hodges <tbyhdgs@gmail.com>
|
skimage.io with imageio.v3 for reading/writing images.skimage.io with imageio.v3 for reading/writing images.
|
Dear lesson maintainers, This PR is now ready for review! We will discuss it later today at the first CAC (Curriculum Advisory Committee) meeting. @tobyhodges it looks like I cannot mention @curriculum-advisors-image... Could I have this permission, please? Thanks. |
I am surprised if you cannot mention the team, as you are a member. The team name in your post is correct, but missing the organisation name as a prefix - please could you double-check if you are able to tag the CAC using the full team name (at datacarpentry slash curriculum-advisors-image)? |
|
@datacarpentry/curriculum-advisors-image (see above) -- found it! Sorry for the noise, @tobyhodges 🙏 |
Co-authored-by: Ulf Schiller <uschille@users.noreply.github.com>
|
Thanks for reviewing, @uschille! |
|
@tobyhodges The curriculum advisory committee is in favor of adopting |
|
Thank you for this excellent effort, @mkcor. Merging now 🙌 |
Dear lesson maintainers,
Please let me know if I should have created an issue first, in order to discuss the change I'm submitting here. I wish to 'change this lesson' and the link given at https://github.com/datacarpentry/image-processing/blob/gh-pages/CONTRIBUTING.md#where-to-contribute leads to a 404, so I wasn't sure on how to proceed... I'm happy to have all the necessary discussions here, and I won't be offended at all if this PR gets closed (instead of merged).
I realize I should have committed the non-controversial changes separately, so they can get merged! I'm happy to re-submit them in a separate PR.
Getting to the gist of this PR, I'm following up on scikit-image/scikit-image#5036 (comment): The vision for scikit-image is to focus on actual image processing, delegating other functionalities (e.g., input/output, drawing, ...) to dedicated libraries. For reading and writing image data, this dedicated library is now available and stable, it is imageio.
Therefore, I'm thinking that, before releasing this lesson as 'stable,' we may want to consider making this change. If you agree with it, I'll propagate it to all subsequent episodes (episode 03 representing the biggest chunk). From an educational perspective, I can see how we may prefer sticking with only one library instead of two. I would argue that the proposed change doesn't add a dependency (you can readily import imageio once you have installed scikit-image); so the setup wouldn't be affected.
I could add a sentence to introduce the imageio library, if you deem it appropriate; the existing sentence seems almost sufficient and works well with the proposed change: "Let's load our image data from disk using the
imreadfunction from theimageio.v3library and display it using ..."Let me ping other scikit-image maintainers in case they might have different and/or additional points to make: @stefanv @jni @alexdesiqueira @grlee77 @lagru
Instructions
Thanks for contributing! ❤️
If this contribution is for instructor training, please email the link to this contribution to
checkout@carpentries.org so we can record your progress. You've completed your contribution
step for instructor checkout by submitting this contribution!
Keep in mind that lesson maintainers are volunteers and it may take them some time to
respond to your contribution. Although not all contributions can be incorporated into the lesson
materials, we appreciate your time and effort to improve the curriculum. If you have any questions
about the lesson maintenance process or would like to volunteer your time as a contribution
reviewer, please contact The Carpentries Team at team@carpentries.org.
You may delete these instructions from your comment.
- The Carpentries