Skip to content

Commit

Permalink
chore: better log
Browse files Browse the repository at this point in the history
  • Loading branch information
Caceresenzo committed Dec 20, 2023
1 parent a7f7cea commit 645c512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backtest/export/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_metric(column: str, name: str):
pass

if name not in df_metrics.index:
print(f"[warning] invalid metric name: `{name}`: not in index: {df_metrics.index}")
print(f"[warning] invalid metric name: `{name}`: not in index: {list(df_metrics.index)}")
return "-"

value = df_metrics.loc[name, column]
Expand Down

0 comments on commit 645c512

Please sign in to comment.