MSS icon indicating copy to clipboard operation
MSS copied to clipboard

gallery on rtfd shows a ValueError

Open ReimarBauer opened this issue 3 months ago • 3 comments

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/mss/checkouts/rtfd_problems/docs/../mslib/mswms/wms.py", line 415, in generate_gallery
    None if exists else plot_driver.plot(), plot_object, generate_code,
                        ~~~~~~~~~~~~~~~~^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/mss/checkouts/rtfd_problems/docs/../mslib/mswms/mss_plot_driver.py", line 534, in plot
    data = self._load_interpolate_timestep()
  File "/home/docs/checkouts/readthedocs.org/user_builds/mss/checkouts/rtfd_problems/docs/../mslib/mswms/mss_plot_driver.py", line 489, in _load_interpolate_timestep
    if jump:
       ^^^^
ValueError: The truth value of an empty array is ambiguous. Use `array.size > 0` to check that an array is not empty.

ReimarBauer avatar Sep 17 '25 15:09 ReimarBauer

hey @ReimarBauer could you assign this issue to me?

sanyam-dev avatar Sep 20 '25 19:09 sanyam-dev

Hi @sanyam-dev you have it. Please send a PR to stable branch.

ReimarBauer avatar Sep 22 '25 13:09 ReimarBauer

the error sometimes happens also by moving waypoints. Then it shows

ERROR:
<class 'owslib.util.ServiceException'>
The data corresponding to your request is not available. Please check the times and/or path you have specified.

Error message: The truth value of an empty array is ambiguous. Use `array.size > 0` to check that an array is not empty..
Hint: Check used waypoints.

ReimarBauer avatar Sep 22 '25 13:09 ReimarBauer