Open hoxbro opened 2 years ago
Just got hit by this bug too.
Param doesn't complain when the bounds of a Range
Parameter is set with weird values.
import param
class X(param.Parameterized):
xlim = param.Range(bounds=('a', 'b'))
x = X()
Same when the bounds are being updated. In the OP the bounds are updated with np.datetime64
values.
I have opened two issues related to this bug: https://github.com/holoviz/panel/issues/4127 and https://github.com/holoviz/param/issues/660
I Will submit a PR with a workaround I talked with @maximlt about to avoid the error and have some of the functionality needed.
The sliders used for xlim/ylim are very sensitive to the initial data type .An example of this is if ylim sliders are calculated based on a number array, and then
y
is changed to a datetime array, it will raise an error.https://user-images.githubusercontent.com/19758978/201969509-d8a33899-4468-490f-9686-10167ee65624.mp4