diff --git a/motmetrics/metrics.py b/motmetrics/metrics.py index eeaef77..91f9144 100644 --- a/motmetrics/metrics.py +++ b/motmetrics/metrics.py @@ -200,7 +200,10 @@ def compute( df_map = events_to_df_map(df) cache = {} - options = {"ana": ana} + if ana is None: + options = {} + else: + options = {"ana": ana} for mname in metrics: cache[mname] = self._compute( df_map, mname, cache, options, parent="summarize"