Skip to content

Postprocessing for spectra #213

Description

@matthewcarbone

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions