Skip to content

Commit 035dac4

Browse files
committed
Use currect folder for dimensions
1 parent b335484 commit 035dac4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/merge-dimensions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ def dict_merge(*args, add_keys=True):
3939
ret = {}
4040

4141
for f in glob("data-new/*/*"):
42-
dimension = f.split("/")[0]
42+
dimension = f.split("/")[1]
4343
if dimension not in ret:
4444
ret[dimension] = {}
45+
print ("Found " + dimension)
4546
ret[dimension] = dict_merge(ret[dimension], yaml_load(Path(f).read_text()))
4647

4748
Path("data/dimensions.yaml").write_text(yaml_dump(ret))

0 commit comments

Comments
 (0)