gfabbris / multiplety Goto Github PK
View Code? Open in Web Editor NEWMultiplet calculation of XAS and RIXS spectra
Multiplet calculation of XAS and RIXS spectra
There needs to do some moving around of states on the atomic calculation to make f orbitals work properly. I haven't checked if this is all working as it should.
Plus check that x-ray emission (specially Lgamma) works well.
It should work fine in linux, but there may be some issues with running the atomic codes due to differences between terminal and command line
Right now the code has a folder reference to the atomic codes. Another option might be to ask the author to add the codes to ~/.bashrc or ~/.bash_profile under mac?
generate_polarization(xray_angle, scattering_angle)
with xray_angle=90 and scattering_angle=90
should return
[1/sqrt(2), 0 1j/sqrt(2)]
not
[1/sqrt(2), 0 1/sqrt(2)]
load_rixs seems to be a placeholder rather than a finished function
def load_rixs(save_folder, fname):
""" Load RIXS data saved with save_rixs.
Parameters
-----------
save_folder: string
Folder that the calculation is saved.
fname: string
Name of the saved file.
Returns
-----------
rixs: pandas dataframe
Contains calculated RIXS. The incident energy is in rixs.columns.values,
and energy loss is in rixs.index.values.
"""
rixs = pd.read_csv(save_folder+'rixs_matrix.dat',comment='#',dtype=np.float64)
rixs.columns = pd.to_numeric(rixs.columns)
return rixs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.