Skip to content

fix(autotune): flatten u/y arrays in apply_filters to fix ValueError#51

Open
DTSHNICK wants to merge 1 commit intoAuterion:masterfrom
DTSHNICK:fix_autotune
Open

fix(autotune): flatten u/y arrays in apply_filters to fix ValueError#51
DTSHNICK wants to merge 1 commit intoAuterion:masterfrom
DTSHNICK:fix_autotune

Conversation

@DTSHNICK
Copy link
Copy Markdown

u and y were passed as 2D column vectors (shape (n,1)) from autotune.py, causing "setting an array element with a sequence" when initializing the 1D filter output arrays. Added np.ravel() at the start of apply_filters to normalize inputs to 1D.

u and y were passed as 2D column vectors (shape (n,1)) from autotune.py,
causing "setting an array element with a sequence" when initializing the
1D filter output arrays. Added np.ravel() at the start of apply_filters
to normalize inputs to 1D.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant