diff --git a/nafuma/xanes/io.py b/nafuma/xanes/io.py index 20aa717..816b8f5 100644 --- a/nafuma/xanes/io.py +++ b/nafuma/xanes/io.py @@ -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)