lukepolson / youtube_channel Goto Github PK
View Code? Open in Web Editor NEWNotebooks for the python tutorials of my youtube channel. See specific youtube video for link to specifc notebook.
Notebooks for the python tutorials of my youtube channel. See specific youtube video for link to specifc notebook.
In the cell labelled In [126]
, you have
all_harmonics=True
if all_harmonics:
tot = sol.sum(axis=1)[::10] # all harmonics
else:
tot = sum(hms)[::10] # only first 10 harmonics
tot = tot.astype(np.float32)
When calculating with all_harmonics
, you take the average y
value across the string at each time t
to generate your PCM sound stream (this makes sense). The average value of a periodic function is just the amplitude of its zeroth harmonic; summing all harmonic amplitudes at a timeslice t
is a different calculation. You can check this by listening to WAVs with all_harmonics=True
vs all_harmonics=False
with a high number of harmonics and finding that they don't sound similar.
Edit: Actually I'm not sure if taking the average y
value at each time t
is correct, since even harmonic contributions to the average y
would be zero. Here's an open SE question on the topic: https://physics.stackexchange.com/questions/574906/derive-shape-of-sound-wave-from-vibrating-string-simulation
Hi, I really liked the image processing you have done on CT scan image processing. I wanted to try with the data. I see that you have recently deleted the data. Could you please let me know where can I find the file?
Please choose a license and add a license file. I don't want to accidentally use any of your code without permission.
Hello
where we can find the the image "accordion.png" for notebook 8 where you solve poisson equation?
thanks
Recently I watched your videos about filtered backprojection introductions on youtube, and I have the following problems:
I would be grateful if you can provide the corresponding resources, thank you!
Hi
I need CT_scan.npy file that you used in liver segmentation video.
Please upload it
I appreciate it
Thank you
Hi Luke, first thank you very much for your work on youtube and physics.
To the point! in the file vid27.ipynb the first image (sacnner.PNG) is not showing. excuse my boldness, could you correct it?
Thank you so much for your great work.
I printed out the sum of squares of velocities in the simulation and observed the total energy varies over time.
https://github.com/lukepolson/youtube_channel/blob/main/Python%20GPU/multibody_boltzmann.ipynb
Hi @lukepolson :),
Would you be interested in contributing your back projection notebook to PyMedPhys?
It could sit within the "How-To" section of the docs PyMedPhys docs. Even though it isn't actually using the pymedphys library, the notebook itself would be of significant interest to Medical Physicists in training. You could certainly link back to your original notebook and your youtube video also.
Cheers,
Simon
I'm coming from left-field as I don't watch your channel. I did notice some matplotlib, and a couple of tkinter GUIs. Have you looked at PySimpleGUI? It may fit well with the types of applications I see currently in your notebooks that could be instead run as GUIs.
I may be entirely wrong, which happens quite often, but I something I get one right.
vid9.ipynb attempts to open the file turkey.png in cell 63 using
img = color.rgb2gray(io.imread('../../output/turkey.png'))
Where is turkey.png?
Sam Dupree.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.