Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!9Fixes path bug in shed meta file creation
Pipeline #
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment