Skip to content

Conversation

@GeorgePearse
Copy link
Owner

Upstream PR: rlabbe/filterpy#313
Author: Imported from upstream


Original Description

From the author's textbook, several cells fail. Example:

import kf_book.mkf_internal as mkf_internal

mean = [2., 17.]
cov = [[10., 0.], 
       [0., 4.]]

mkf_internal.plot_3d_covariance(mean, cov)

Yields:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
...
ValueError: Unable to avoid copy while creating an array as requested.
If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.

This pull request applies this change to this function, noting the change may still be required elsewhere.


Integration Notes

  • Validation passed

@GeorgePearse GeorgePearse added from-upstream-pr PR imported from upstream rlabbe/filterpy repository low-risk Low-risk PR (docs, typos, etc) labels Oct 25, 2025
# Conflicts:
#	bayesian_filters/stats/stats.py
@GeorgePearse
Copy link
Owner Author

Already done as part of the numpy upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from-upstream-pr PR imported from upstream rlabbe/filterpy repository low-risk Low-risk PR (docs, typos, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants