ValueError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
failed to validate FigureOptions(...).y_range: expected an element of either Instance(Range), Either(Tuple(Float, Float), Tuple(Datetime, Datetime), Tuple(TimeDelta, TimeDelta)), Seq(String), Object(Series) or Object(GroupBy), got None
File "C:\Python\Python39\Lib\site-packages\bokeh\core\property\bases.py", line 364, in prepare_value
raise ValueError(f"failed to validate {obj_repr}.{name}: {error}")
File "C:\Python\Python39\Lib\site-packages\bokeh\core\property\descriptors.py", line 332, in __set__
value = self.property.prepare_value(obj, self.name, value)
File "C:\Python\Python39\Lib\site-packages\bokeh\core\has_props.py", line 327, in __setattr__
return super().__setattr__(name, value)
File "C:\Python\Python39\Lib\site-packages\bokeh\core\has_props.py", line 295, in __init__
setattr(self, name, value)
File "C:\Python\Python39\Lib\site-packages\bokeh\util\options.py", line 75, in __init__
super().__init__(**props)
File "C:\Python\Python39\Lib\site-packages\bokeh\plotting\_figure.py", line 187, in __init__
opts = FigureOptions(kw)
File "C:\Python\Python39\Lib\site-packages\arlpy\plot.py", line 61, in _new_figure
f = _bplt.figure(title=title, width=width, height=height, x_range=xlim, y_range=ylim, x_axis_label=xlabel, y_axis_label=ylabel, x_axis_type=xtype, y_axis_type=ytype, tools=tools)
File "C:\Python\Python39\Lib\site-packages\arlpy\plot.py", line 368, in plot
_figure = _new_figure(title, width, height, xlabel, ylabel, xlim, ylim, xtype, ytype, interactive)
File "C:\Python\Python39\Lib\site-packages\arlpy\uwapm.py", line 496, in plot_rays
_plt.plot(row.ray[:,0]/divisor, -row.ray[:,1], color=c, xlabel=xlabel, ylabel='Depth (m)', **kwargs)
File "D:\lkq\python\arlpy_demo\arlpy_demo.py", line 12, in <module>
pm.plot_rays(rays, env=env, width=900)
File "C:\Python\Python39\Lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python\Python39\Lib\runpy.py", line 197, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
ValueError: failed to validate FigureOptions(...).y_range: expected an element of either Instance(Range), Either(Tuple(Float, Float), Tuple(Datetime, Datetime), Tuple(TimeDelta, TimeDelta)), Seq(String), Object(Series) or Object(GroupBy), got None
Versions
My source code
Exception