Skip to content

Commit

Permalink
polyfit should always return a list of coefficients
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Feb 18, 2025
1 parent 679eb41 commit 326e2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion larch/math/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,4 +473,4 @@ def polyfit(x, y, deg=1, reverse=False):
coefs = pfit.convert().coef
if reverse:
coefs = list(reversed(coefs))
return coefs
return list(coefs)

0 comments on commit 326e2f8

Please sign in to comment.