Skip to content

Commit

Permalink
Add TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Jan 28, 2025
1 parent df39bf4 commit 47ef624
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e3sm_diags/e3sm_diags_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ def main(parameters=[]) -> List[CoreParameter]: # noqa B006
if not os.path.exists(path):
os.makedirs(path)

# TODO: This is where the path is passed for the viewer, which
# is where the index.html is stored.
index_path = create_viewer(path, parameters_results)
logger.info("Viewer HTML generated at {}".format(index_path))

Expand Down
2 changes: 2 additions & 0 deletions e3sm_diags/viewer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def insert_data_in_row(row_obj, name, url):
row_obj.append(td)

path = os.path.join(e3sm_diags.INSTALL_PATH, "viewer", "index_template.html")
# TODO: root_dir is the results_dir with "viewer" appended to it. We
# want the index.html to work in the results_dir too.
output = os.path.join(root_dir, "index.html")

soup = BeautifulSoup(open(path), "lxml")
Expand Down

0 comments on commit 47ef624

Please sign in to comment.