That one usage doesn't seem like a strong enough reason to keep a method around on every Parameterized object. .param.defaults has some complicated semantics for what happens when objects don't yet exist, which differs based on the value of instantiate, so I'm not sure precisely what to replace it with, or even whether that existing semantics is in fact appropriate in this case. Can we replace this code with something clearer, e.g. accessing self.param.lod directly?
We're trying to trim unneeded methods from Param Parameterized objects, and the only usage I could find for
.param.defaults
was in HoloViews:lod = dict(self.param.defaults().get('lod', {}), **self.lod)
https://github.com/holoviz/holoviews/blob/master/holoviews/plotting/bokeh/element.py#L558That one usage doesn't seem like a strong enough reason to keep a method around on every Parameterized object.
.param.defaults
has some complicated semantics for what happens when objects don't yet exist, which differs based on the value ofinstantiate
, so I'm not sure precisely what to replace it with, or even whether that existing semantics is in fact appropriate in this case. Can we replace this code with something clearer, e.g. accessingself.param.lod
directly?