Skip to content

Commit

Permalink
backport PR #25 (fixed amda multidimensional data download, column na…
Browse files Browse the repository at this point in the history
…mes)

Signed-off-by: Alexis Jeandet <[email protected]>
  • Loading branch information
jeandet committed Nov 25, 2021
1 parent 8d502db commit 0981115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speasy/amda/amda.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def load_csv(filename: str):
key, value = line[1:].split(':', 1)
meta[key.strip()] = value.strip()
line = csv.readline().decode()
columns = [col.strip() for col in meta['DATA_COLUMNS'].split(',')[:]]
columns = [col.strip() for col in meta['DATA_COLUMNS'].split(', ')[:]]
with urlopen(filename) as f:
data = pds.read_csv(f, comment='#', delim_whitespace=True, header=None, names=columns).values.transpose()
time, data = data[0], data[1:].transpose()
Expand Down

0 comments on commit 0981115

Please sign in to comment.