Skip to content

Instantly share code, notes, and snippets.

View winston-song's full-sized avatar

Weixin Song winston-song

  • University of Oxford
View GitHub Profile
@winston-song
winston-song / Mn_whitelineratio
Last active April 21, 2020 13:40
Mn L3/L2 white line ratio using gussian component plus H-S step edge
# 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