You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a second order Kalman filter for 3-dimensional data that I can successfully apply using batch_filter() if I fill missing values in the input first. But if I try running the filter by assigning None to the missing values with df.replace(np.nan, None) (before turning my measurements into a list), I get the error:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
I found the related issue and fix for missing values using masked arrays in linear_case_filterpy.ipynb example, but should batch_filter() be working as-is when missing values are filled with None?
The text was updated successfully, but these errors were encountered:
It looks like batch_filter actually wants a list of measurements with None wherever there are missing measurements, as opposed to an array with None as values in the array. However, if you insert None, you get
ValueError: setting an array element with a sequence.
I have created a second order Kalman filter for 3-dimensional data that I can successfully apply using
batch_filter()
if I fill missing values in the input first. But if I try running the filter by assigningNone
to the missing values withdf.replace(np.nan, None)
(before turning my measurements into a list), I get the error:The call stack tracing the error is:
I found the related issue and fix for missing values using masked arrays in
linear_case_filterpy.ipynb
example, but shouldbatch_filter()
be working as-is when missing values are filled withNone
?The text was updated successfully, but these errors were encountered: