Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created January 17, 2017 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/aa868f7a9468b94bfd47de0d1fc81802 to your computer and use it in GitHub Desktop.
Save thomasaarholt/aa868f7a9468b94bfd47de0d1fc81802 to your computer and use it in GitHub Desktop.
Fast but poor fitting of the zirconium L white lines
m = Zr.create_model(ll, GOS="Hartree-Slater")
Zr_L3_white = hs.model.components1D.Gaussian()
Zr_L3_white.name = "Zr L3 White Line"
Zr_L3_white.centre.bmin = 2218.0
Zr_L3_white.centre.bmax = 2240.0
Zr_L3_white.sigma.bmax=3
Zr_L3_white.A.bmin = 0
Zr_L2_white = hs.model.components1D.Gaussian()
Zr_L2_white.name = "Zr L2 White Line"
Zr_L2_white.centre.bmin = 2309.0
Zr_L2_white.centre.bmax = 2317.0
Zr_L2_white.sigma.bmax=3
Zr_L2_white.A.bmin = 0
m.append(Zr_L3_white)
m.append(Zr_L2_white)
m["Zr_L3"].onset_energy.twin = Zr_L3_white.centre
m["Zr_L2"].onset_energy.twin = Zr_L2_white.centre
m.fit(bounded=True)
m.plot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment