Commit 2e9badb5 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Fixes data path in read_meta_file

parent 02e407d9
......@@ -49,7 +49,10 @@ def write_meta_file(meta_path, csv_path, duty_cycle_length=300):
def read_meta_file(meta_path):
"""Return metadata for a data set, from a metadata file."""
with open(meta_path) as meta_file:
return json.load(meta_file)
meta = json.load(meta_file)
meta['data'] = path.join(path.dirname(meta_path), meta['data'])
return meta
raise RuntimeError('Should not get here...')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment