Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmckinsey1 committed Oct 10, 2024
1 parent 3ab1dca commit 3095a99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/python_scripts/display_valid_metadata_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
sys.path.append("/usr/gapps/spot/dev/thicket-playground-dev/")


usage_str = "Please provide a directory of Caliper files\nUsage: python display_valid_metadata_metric.py <caliper_files_directory>"


def display_valid_metrics_metadata():
tk = th.Thicket.from_caliperreader(glob(sys.argv[1] + "/**/*.cali", recursive=True))

Expand All @@ -17,9 +20,12 @@ def display_valid_metrics_metadata():
print("\n" + "-" * 30 + "\n")

print("Valid metric values:\n")
for value in tk.dataframe.columns:
for value in tk.performance_cols:
print("\t" + value)


if __name__ == "__main__":
if len(sys.argv) < 2:
print(usage_str)
exit()
display_valid_metrics_metadata()
1 change: 1 addition & 0 deletions examples/python_scripts/stacked_line_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def process_thickets(
if top_n_nodes != -1:
ctk.dataframe = ctk.dataframe.nlargest(top_n_nodes, [(x_axis[0], "Total time")])

# Set default label to x_axis_unique_metadata if not provided
if not additional_args["chart_xlabel"]:
additional_args["chart_xlabel"] = x_axis_unique_metadata

Expand Down

0 comments on commit 3095a99

Please sign in to comment.