Skip to content

Commit

Permalink
🏗️ move visualization in separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanBilot committed Mar 28, 2022
1 parent bf0ad99 commit 989cb5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phishGNN/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def generate_every_graphs():
dataset = dataset.shuffle()
print(f"Start generating graphs...")
for i, data in enumerate(tqdm(dataset, total=len(dataset))):
visualize(data, html_save_file=f"graphs/graph{i}.html")
visualize(data, html_save_file=f"visualization/graphs/graph{i}.html")

print(f"Graphs successfully created.")

Expand Down
4 changes: 2 additions & 2 deletions visualization.html → visualization/visualization.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
function load_graph(graph_num) {
if (graph_num < 0)
return
$("#includedContent").load("graphs/graph" + graph_num + ".html", function() {
$("#includedContent").load("visualization/graphs/graph" + graph_num + ".html", function() {
data = $("#graph_data")
if (!data.length) {
$("#includedContent").html("No html files found in graphs/ folder, run visualization.py first.")
$("#includedContent").html("No html files found in visualization/graphs/ folder, run visualization.py first.")
$(".right-block").hide()
return
}
Expand Down

0 comments on commit 989cb5e

Please sign in to comment.