Skip to content

Commit

Permalink
Set options = {} when ana is None
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi-k committed May 30, 2024
1 parent b687013 commit 1ab001d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion motmetrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1ab001d

Please sign in to comment.