Skip to content

Commit

Permalink
Remove FutureWarning in main_res.py (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelGrupp authored Nov 14, 2023
1 parent 399cfcd commit 4831606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions evo/main_res.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ def run(args: argparse.Namespace) -> None:
error_df = pd.concat([error_df, new_error_df], axis=1)

# check titles
first_title = df.loc["info", "title"][0] if not args.ignore_title else ""
if args.ignore_title:
first_title = ""
else:
first_title = df.loc["info", "title"].iloc[0]
first_file = args.result_files[0]
if not args.no_warnings and not args.ignore_title:
checks = df.loc["info", "title"] != first_title
Expand Down Expand Up @@ -176,7 +179,7 @@ def run(args: argparse.Namespace) -> None:
index_label = df.loc["info", "xlabel"][0]
else:
index_label = "$t$ (s)" if common_index else "index"
metric_label = df.loc["info", "label"][0]
metric_label = df.loc["info", "label"].iloc[0]

plot_collection = plot.PlotCollection(first_title)
# raw value plot
Expand Down
2 changes: 1 addition & 1 deletion evo/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.25.1
v1.25.2

0 comments on commit 4831606

Please sign in to comment.