Skip to content

Commit

Permalink
fix: Fix minor issue with mix of forward-only and normal in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMichelsen committed Oct 27, 2022
1 parent 6a118fd commit 4d44f16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metaDMG/viz/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _load_df_results(self):
log_column = "log_" + column
df.loc[:, log_column] = np.log10(1 + df[column])

if np.isnan(df["k-1"]).any():
if "k-1" not in df.columns or np.isnan(df["k-1"]).any():
self.contains_forward_only = True
if "k-1" in df.columns:
df["forward_only"] = df["k-1"].isna()
Expand Down

0 comments on commit 4d44f16

Please sign in to comment.