Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#1/5/2022 Michael Ofengenden & Roger Yu & A LOT A LOT of help from Zack Gainsforth | |
import sys, os | |
import hyperspy.api as hs | |
import numpy as np | |
import warnings | |
with warnings.catch_warnings(): | |
warnings.simplefilter("ignore") | |
import tifffile as tif | |
import skimage | |
from skimage.transform import resize |
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 streamlit as st | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import os, sys | |
from scipy.ndimage.filters import gaussian_filter1d | |
from scipy.interpolate import interp1d | |
def ConvolveGaussian(Eraw, Iraw, Sigma): | |
E = np.linspace(Eraw[0], Eraw[-1], 10000) | |
dE = E[1] - E[0] |
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.signal import medfilt, convolve | |
from scipy.signal.windows import gaussian | |
import os, sys | |
SpectraPath = os.path.join(".") | |
SpectraFiles = { | |
"Top Crystal" : os.path.join(SpectraPath, "Top Crystal.txt"), |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Created 2015, Zack Gainsforth | |
import matplotlib | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import struct | |
from numpy.fft import fft, fftfreq | |
def LoadSPAInterferogram(FileName): | |
# Open the SPA file. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
How to compile quantum espresso on mac or linux. | |
Disable anaconda during compilation. | |
On mac install macports version of gnu compilers: gcc-7 and gfortran-7 | |
On linux install gnu compilers. | |
Install blas, fftw, mpich. | |
On OS X macports won't overwrite clang. Stupid, but just put the macports compilers earlier in the path. |
NewerOlder