Skip to content

Commit 9606879

Browse files
committed
addressing #156
1 parent e830538 commit 9606879

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pynumdiff/kalman_smooth/_kalman_smooth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def rtsdiff(x, _t, order, qr_ratio, forwardbackward):
124124
"""
125125
if not np.isscalar(_t) and len(x) != len(_t):
126126
raise ValueError("If `_t` is given as array-like, must have same length as `x`.")
127+
x = np.asarray(x) # to flexibly allow array-like inputs
127128

128129
q = 10**int(np.log10(qr_ratio)/2) # even-ish split of the powers across 0
129130
r = q/qr_ratio

0 commit comments

Comments
 (0)