Skip to content

Commit

Permalink
Correct passing of arguments optimize->optimize
Browse files Browse the repository at this point in the history
`optimise` expects a dict, not many kwargs
  • Loading branch information
ianhi authored Feb 26, 2024
1 parent 8632533 commit 2c98c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btrack/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def hypotheses(self) -> list[hypothesis.Hypothesis]:

def optimize(self, **kwargs):
"""Proxy for `optimise` for our American friends ;)"""
return self.optimise(**kwargs)
return self.optimise(options=kwargs)

def optimise(self, options: Optional[dict] = None) -> list[hypothesis.Hypothesis]:
"""Optimize the tracks.
Expand Down

0 comments on commit 2c98c4c

Please sign in to comment.