This file contains 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 cv2 | |
from matplotlib import pyplot as plt | |
import numpy as np | |
from skimage import draw | |
from scipy.signal import find_peaks | |
w = int(3648/4) | |
h = int(2736/4) | |
# Actual mouse callback function | |
def print_coords(event, x, y, flags, param): |
This file contains 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 PyDAQmx as daq | |
import numpy as np | |
import time | |
from ctypes import * | |
import matplotlib.pyplot as plt | |
from pyvcam import pvc | |
from pyvcam.camera import Camera | |
# device = 'dev1' | |
# try: | |
# daq.DAQmxResetDevice(device) |
This file contains 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
#!/usr/bin/env python | |
# Fit equations of state (EOS) to energy vs volume curves and optionally plot the results | |
# Davide Ceresoli <dceresoli@gmail.com>, 03/22/2011 | |
# Inspired by ase.utils.eosase2 | |
# TODO: Keane | |
import sys, numpy, math | |
from scipy.optimize import leastsq | |
# Murnaghan equation of state |
This file contains 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
#!/usr/bin/env python | |
# Fit polynomial equations of state (EOS) to energy vs volume curves | |
# and optionally plot the results | |
# Davide Ceresoli <dceresoli@gmail.com>, 10/03/2012 | |
# Inspired by ase.utils.eosase2 | |
import sys, numpy, math | |
from scipy.optimize import leastsq | |
import numpy.polynomial.polynomial as poly |
This file contains 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 numpy as np | |
import math | |
# function to calculate LCM | |
def lcm(a): | |
lcm = a[0] | |
for i in range(1,len(a)): | |
lcm = lcm*a[i]//math.gcd(lcm, a[i]) | |
return lcm |
This file contains 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 numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.fftpack import fft, fftfreq | |
from scipy import signal | |
import glob | |
from scipy import constants | |
import pandas as pd | |
import glob | |
import matplotlib | |
matplotlib.style.use('seaborn-poster') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer