-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Blur Animation source code and simplified output #328
base: main
Are you sure you want to change the base?
Blur Animation source code and simplified output #328
Conversation
…f a single-channel image of letter A. I added the A.tif image in data and the exported animation directly into the fig directory
Thank you!Thank you for your pull request 😃 🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}. If you have files that automatically render output (e.g. R Markdown), then you should check for the following:
Rendered Changes🔍 Inspect the changes: https://github.com/datacarpentry/image-processing/compare/md-outputs..md-outputs-PR-328 The following changes were observed in the rendered markdown documents:
What does this mean?If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation. ⏱️ Updated at 2024-11-28 00:01:59 +0000 |
Thank you very much @marcodallavecchia for this contribution. We discussed this in today's Curriculum Advisory Committee meeting. We do like the new animation and envision that it can be included in the blurring episode. Regarding the location of the script, we do not have an ideal solution but our consensus (as of now) is to keep code scripts that re-generate figures in One suggestion I have is that you might use a default value for the kernel size so that maintainers can reproduce the figure without having to guess the kernel size. I tend to prefer scripts that do not require interactive input for reproducibility. There may be other feedback on the script, so I'll keep the pull request open for others to comment - 👋 @mkcor. |
@uschille thanks a lot for coming back to this!
👋 Marco |
Thanks @marcodallavecchia - the new blur animation looks great! I'd agree with @uschille 's comments above. We will need to update the text in the blurring episode to match this new animation. For example, above this gif it says |
Yes, it will require a bit of work to incorporate the new animation in the lesson. @marcodallavecchia would you perhaps be willing to give it a try? I'd suggest to keep this PR open while we are working on it. Does this sound reasonable @K-Meech? |
Sounds good to me @uschille ! |
Dear @uschille and @K-Meech, Just to clarify, should I open a new PR only with the lecture changes, or should I integrate the text changes with the blur animation code altogether? |
Great - thanks @marcodallavecchia ! I'd say incorporate it directly into this PR, along with the blur animation code. |
Hello everyone!
I've seen from this issue, that we were looking to implement a better blur animation figure for section 06-blurring.
I've implemented a Python script that creates this animation with Matplotlib. Here are a few points:
episodes/data/A.tif
episodes/fig/blur-demo.gif
env.yml
file for the requirementsA final extra point from my side: I'm a big believer that every output should be associated with its source-code, especially in the carpentries context where we are trying to keep things reproducible. In this case, I couldn't find the code used to create the previous version of the
blur-demo.gif
so I took the freedom to create aepisodes/files/source-code/
directory, where we could pool together all the code snippets for generating all the output that would later feed on the website (this is where my currentcreate_blur_animation.py
file is). I am unsure if this is the best place to have such folder, maybe in the root could even be better for clear reference.I hope this is helpful for the issue and course material. I am open to improve it in the near future after some feedback!