Skip to content

Commit

Permalink
Added one more level to glossary path
Browse files Browse the repository at this point in the history
  • Loading branch information
areleu committed Dec 16, 2022
1 parent 241bb70 commit 33297dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/etd/etd.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
table = title + buffer + "\n\n"
#df.to_markdown(buf=cwd + "/src/scripts/etd/ETD.md", index=False)
output += table
with open(pathlib.Path(target_path).joinpath("glossary.md").as_posix(), "w") as fil:
with open(pathlib.Path(target_path).joinpath("glossary/glossary.md").as_posix(), "w") as fil:
fil.write(output)

# create csv output
df_csv = df.copy()
df_csv["ID"] = df_csv["ID"].str.replace("http://openenergy-platform.org/ontology/oeo/oeo-physical/", "")
df_csv["ID"] = df_csv["ID"].str.replace("http://openenergy-platform.org/ontology/oeo/oeo-model/", "")
df_csv["ID"] = df_csv["ID"].str.replace(":", "_")
df_csv.to_csv(pathlib.Path(target_path).joinpath("glossary.csv").as_posix(), index=False)
df_csv.to_csv(pathlib.Path(target_path).joinpath("glossary/glossary.csv").as_posix(), index=False)

0 comments on commit 33297dc

Please sign in to comment.