Let load_data conform to data/options-standard
This commit is contained in:
parent
731ea70f77
commit
b40b023cbc
1 changed files with 3 additions and 2 deletions
|
|
@ -240,11 +240,12 @@ def save_data(data: dict, options={}) -> None:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def load_data(path: str):
|
def load_data(data: dict, options={}) -> dict:
|
||||||
|
# FIXME Let this function be called by read_data() if some criterium is passed
|
||||||
|
|
||||||
data = {}
|
data = {}
|
||||||
|
|
||||||
data['xanes_data'] = pd.read_csv(path, sep='\t')
|
data['xanes_data'] = pd.read_csv(data['path'], sep='\t')
|
||||||
data['path'] = data['xanes_data'].columns.to_list()
|
data['path'] = data['xanes_data'].columns.to_list()
|
||||||
data['path'].remove('ZapEnergy')
|
data['path'].remove('ZapEnergy')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue