Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postprocessing for spectra #213

Open
5 tasks
matthewcarbone opened this issue Nov 7, 2023 · 0 comments
Open
5 tasks

Postprocessing for spectra #213

matthewcarbone opened this issue Nov 7, 2023 · 0 comments
Assignees

Comments

@matthewcarbone
Copy link
Contributor

Objective is to define functions that extract useful information from completed jobs.

def extract_FEFF(path: str) -> dict

where the output dictionary can have keys like "spectra", "corehole energy", etc.

For FEFF it's really easy. Something like this:

def extract_FEFF(path):
    # NOT QUITE THIS SIMPLE!!!
    return {"spectra": np.loadtxt(path / "xmu.dat"), "fermi_level": ...}

As an example of extracting VASP spectra:

grep "IMAGINARY DIELECTRIC FUNCTION" OUTCAR -A 40002 > mu.txt

We want to do one of these for each of the codes:

  • FEFF (priority)
  • VASP (secondary)
  • XSpectra
  • OCEAN
  • EXCITING

We'll put these in lightshow/postprocess/extract.py (directory should already exist).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants