This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def squares_with_coordinates(d, b, w): | |
""" | |
Compute the coordinates of the center of each square inside a circular wafer. | |
Parameters: | |
d (float): Wafer diameter in mm | |
b (float): Border width in mm | |
w (float): Square size in mm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import pyaudio | |
import struct | |
import numpy as np | |
import matplotlib.pyplot as plt | |
%matplotlib tk | |
CHUNK = 1024 * 4 | |
FORMAT = pyaudio.paInt16 |