Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in two-dimensional arrays #25

Closed
lwq-star opened this issue Jul 6, 2022 · 3 comments
Closed

error in two-dimensional arrays #25

lwq-star opened this issue Jul 6, 2022 · 3 comments

Comments

@lwq-star
Copy link

lwq-star commented Jul 6, 2022

When I run the function using a two-dimensional array(size are (902, 1219)),
I received an error:
IndexError: index 902 is out of bounds for axis 0 with size 902
Does this function not support such two-dimensional arrays?

@lwq-star
Copy link
Author

lwq-star commented Jul 6, 2022

if np and isinstance(values, np.ndarray): values = values[np.argwhere(np.isfinite(values)).reshape(-1)]
The error is here.

@mthh
Copy link
Owner

mthh commented Jul 6, 2022

Thanks for the report.

Jenkspy doesn't support two-dimensional arrays. It should probably be checked at the same time as the other checks are performed (null values, data types, etc.).
I will work on it.

mthh added a commit that referenced this issue Aug 16, 2022
@mthh
Copy link
Owner

mthh commented Aug 16, 2022

It has been fixed by 8f40a58 and should now return an error saying that A 1D array is expected.

@mthh mthh closed this as completed Aug 16, 2022
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

No branches or pull requests

2 participants