Make sure data['path'] is in a list
This commit is contained in:
parent
880722d778
commit
cb2c7532e6
1 changed files with 3 additions and 0 deletions
|
|
@ -110,6 +110,9 @@ def read_data(data: dict, options={}) -> pd.DataFrame:
|
|||
# Initialise DataFrame with only ZapEnergy-column
|
||||
xanes_data = pd.read_csv(data['path'][0])[['ZapEnergy']]
|
||||
|
||||
if not isinstance(data['path'], list):
|
||||
data['path'] = [data['path']]
|
||||
|
||||
for filename in data['path']:
|
||||
columns.append(filename)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue