You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g. when using the flexible window where the xdata is a timedelta array:
numpy._core._exceptions._UFuncNoLoopError: ufunc 'greater' did not contain a loop with signature matching types (<class 'numpy.dtypes.Float64DType'>, <class 'numpy.dtypes.TimeDelta64DType'>) -> None
numpy.exceptions.DTypePromotionError: The DType <class 'numpy.dtypes.Float64DType'> could not be promoted by <class 'numpy.dtypes.TimeDelta64DType'>. This means that no common DType exists for the given inputs. For example they cannot be stored in a single array unless the dtype is `object`. The full list of DTypes is: (<class 'numpy.dtypes.Float64DType'>, <class 'numpy.dtypes.TimeDelta64DType'>)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "...\.venv\Lib\site-packages\matplotlib\cbook.py", line 298, in process
func(*args, **kwargs)
File "...\.venv\Lib\site-packages\matplotlib_window\base.py", line 275, in on_motion
new_pos = limit_drag(self.snap_to.get_xdata(), event.xdata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\.venv\Lib\site-packages\matplotlib_window\base.py", line 195, in limit_drag
if query > max_val:
^^^^^^^^^^^^^^^
numpy._core._exceptions._UFuncNoLoopError: ufunc 'greater' did not contain a loop with signature matching types (<class 'numpy.dtypes.Float64DType'>, <class 'numpy.dtypes.TimeDelta64DType'>) -> None
e.g. when using the flexible window where the xdata is a timedelta array:
Simple numpy reproducer:
The text was updated successfully, but these errors were encountered: