diff --git a/libs/utils/trace.py b/libs/utils/trace.py index 93a379e8821c0ad5da06ef7b70a7bfcff96b9362..c7adabdb3ab5108adc25d25d5e68de1da2adcfa7 100644 --- a/libs/utils/trace.py +++ b/libs/utils/trace.py @@ -847,6 +847,10 @@ class Trace(object): ) active.fillna(method='ffill', inplace=True) + # There might be NaNs in the signal where we got data from some CPUs + # before others. That will break the .astype(int) below, so drop rows + # with NaN in them. + active.dropna(inplace=True) # Cluster active is the OR between the actives on each CPU # belonging to that specific cluster