Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions explorer/plots/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,7 @@ def determine_legend(fig, column):
size = 176

file = options["file1"].split(".darshan")[0]
command = "drishti --html --light --size {} --json {} {}.darshan".format(
size, json_file_path, file
)
command = f"drishti --html --light --size {size} --export_dir {os.path.dirname(file)} --json {json_file_path} {file}.darshan"
args = shlex.split(command)
s = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
sOutput, sError = s.communicate()
Expand All @@ -901,10 +899,10 @@ def determine_legend(fig, column):
with open(options["output"], "r") as html_file:
output_doc.body.extend(BeautifulSoup(html_file.read(), "html.parser").body)

with open(file + ".darshan.html", "r") as html_file:
with open(file + ".html", "r") as html_file:
output_doc.head.extend(BeautifulSoup(html_file.read(), "html.parser").head)

with open(file + ".darshan.html", "r") as html_file:
with open(file + ".html", "r") as html_file:
output_doc.body.extend(BeautifulSoup(html_file.read(), "html.parser").body)

output_doc.style.append(BeautifulSoup("pre { padding-left: 60px;}", "html.parser"))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pyranges>=0.0.120
darshan
pyarrow>=10.0.1
bs4>=0.0.1
drishti-io>=0.5
drishti-io>=0.8
Loading