Skip to content

fill in load_rixs function #8

Description

@mpmdean

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions