From 1ab001dc3d14ac9f995b8e53edebff41b1e917be Mon Sep 17 00:00:00 2001 From: Toshiyuki Kato Date: Thu, 30 May 2024 13:38:22 +0900 Subject: [PATCH] Set options = {} when ana is None --- motmetrics/metrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"