Skip to content

Instantly share code, notes, and snippets.

Avatar

Weixin Song winston-song

  • University of Oxford
View GitHub Profile
@winston-song
winston-song / Mn_whitelineratio
Last active Apr 21, 2020
Mn L3/L2 white line ratio using gussian component plus H-S step edge
View Mn_whitelineratio
# copyright, this is a modification basing on fit_Zr_whitelines.py https://gist.github.com/thomasaarholt/1098819b9c930a48b3efb48df76a5185. Any copyright should follow this original.
%matplotlib qt
import hyperspy.api as hs
import matplotlib.pyplot as plt
import numpy as np
ll_sum = hs.load('ll_sum.hspy')
s_sum = hs.load('s_sum.hspy')
s_sum.metadata.Acquisition_instrument.TEM.beam_energy=200
You can’t perform that action at this time.