Commit ed6aa1ef authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Merge branch 'bugfix/shed-meta' into 'develop'

Fixes path bug in shed meta file creation

See merge request !9
parents 5d02a193 1f5c56e6
Pipeline #1655 passed with stage
in 1 minute and 33 seconds
......@@ -31,7 +31,10 @@ def write_meta_file(meta_path, csv_path, duty_cycle_length=300):
nodes.add(target)
last = max(last, int(slot))
common = path.commonprefix([meta_path, csv_path])
common = path.commonprefix([
path.dirname(meta_path),
path.dirname(csv_path),
])
csv_path = path.relpath(csv_path, common)
meta_data = {
......
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