jenkspy icon indicating copy to clipboard operation
jenkspy copied to clipboard

error in two-dimensional arrays

Open lwq-star opened this issue 2 years ago • 2 comments

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 avatar Jul 06 '22 07:07 lwq-star

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

lwq-star avatar Jul 06 '22 07:07 lwq-star

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 avatar Jul 06 '22 07:07 mthh

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

mthh avatar Aug 16 '22 08:08 mthh