ttide_py icon indicating copy to clipboard operation
ttide_py copied to clipboard

Fix ValueError for newer numpy versions

Open willirath opened this issue 1 year ago • 1 comments

For newer Numpy versions, there's a ValueError from https://github.com/moflaher/ttide_py/blob/60b10119e0d984aa2502d4075fd5267ec703491e/ttide/t_tide.py#L430

with the followig recommended fix: ValueError: The truth value of an empty array is ambiguous. Use array.size > 0 to check that an array is not empty.

This PR applies the suggested fix.

willirath avatar Jan 23 '25 16:01 willirath

Thanks for posting about this, I am using the patch now and it fixed my issue!

kthyng avatar Sep 18 '25 21:09 kthyng