Skip to content

Commit

Permalink
Merge pull request #493 from chaos-genius/rca-nan-mean-fix
Browse files Browse the repository at this point in the history
fixes #494 where NaN output was found in deepdrills for specific case
  • Loading branch information
suranah committed Dec 9, 2021
2 parents c04badb + 78ad6de commit 2f6758d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chaos_genius/core/rca/root_cause_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ def _get_waterfall_output_data(

d1_agg = self._grp1_df[self._metric].agg(self._agg)
d2_agg = self._grp2_df[self._metric].agg(self._agg)
d1_agg = 0 if pd.isna(d1_agg) else d1_agg
d2_agg = 0 if pd.isna(d2_agg) else d2_agg
impact = d2_agg - d1_agg
non_overlap_impact = df_subgroups["impact_non_overlap"].sum()

Expand Down

0 comments on commit 2f6758d

Please sign in to comment.