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
---> [12] sel_dtrange.param.update(start=dtmin, end=dtmax, value=(dtmin, dtmax)) # ERROR
ValueError: DateRange parameter 'DatetimeRangePicker.value' upper bound must be in range [1000-01-01 00:00:00, 2000-01-01 00:00:00], not 3000-01-01 00:00:00.
Additional Info
On the contrary, the DatetimeRangeSlider does not raise an exception although value is out of bounds, which might also not be expected by the user.
importpanelaspnimportdatetimeasdtdtmin=dt.datetime(1000, 1, 1)
dtlow=dt.datetime(2000, 1, 1)
dtmax=dt.datetime(3000, 1, 1)
# reducing (start, end) without correcting out-of-range value SHOULD FAIL !sel_dtrange=pn.widgets.DatetimeRangeSlider(start=dtmin, end=dtmax, value=(dtmin, dtmax))
sel_dtrange.param.update(start=dtmin, end=dtlow) # ERROR as value is out of bounds and should raisesel_dtrange=pn.widgets.DatetimeRangePicker(start=dtmin, end=dtmax, value=(dtmin, dtmax))
#sel_dtrange.param.update(start=dtmin, end=dtlow) # OK, fails as value is out of boundssel_dtrange.param.update(start=dtmin, end=dtlow, value=(dtmin, dtlow)) # OK, setting value to reduced bounds works
The text was updated successfully, but these errors were encountered:
ALL software version info
Software Version Info
Description of expected behavior and the observed behavior
start
andend
without raising out-of-bound exceptionvalue
of DatetimeRange* widgets is always betweenstart
andend
parameter or an Exception is raisedComplete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Additional Info
On the contrary, the
DatetimeRangeSlider
does not raise an exception althoughvalue
is out of bounds, which might also not be expected by the user.The text was updated successfully, but these errors were encountered: