ttide_py
ttide_py copied to clipboard
Fix ValueError for newer numpy versions
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.
Thanks for posting about this, I am using the patch now and it fixed my issue!