thus giving SceneCanvas two different values for show, raising an error.
A simple fix is to put show=True in the SceneObj init , then modify the call to create a SceneCanvas object to pass in show=show.
I'm not putting this in a PR because, while the suggested modification is consistent with the docstring, it changes the default behaviour. To replicate the current behaviour, the SceneObj init should have show=False (and the docstring should be updated accordingly). I'm not sure what the "correct" desired behaviour is.
SceneObj's docstring lists
show
as a kwarg:https://github.com/EtienneCmb/visbrain/blob/b599038e095919dc193b12d5e502d127de7d03c9/visbrain/objects/scene_obj.py#L339-L347
However, it isn't an explicit kwarg in the constructor
https://github.com/EtienneCmb/visbrain/blob/b599038e095919dc193b12d5e502d127de7d03c9/visbrain/objects/scene_obj.py#L361-L362
so it gets dumped into
kwargs
.**kwargs
is then passed on to theSceneCanvas
constructor, which also has an explicitshow=False
,https://github.com/EtienneCmb/visbrain/blob/b599038e095919dc193b12d5e502d127de7d03c9/visbrain/objects/scene_obj.py#L368-L370
thus giving
SceneCanvas
two different values forshow
, raising an error.A simple fix is to put
show=True
in the SceneObj init , then modify the call to create aSceneCanvas
object to pass inshow=show
.I'm not putting this in a PR because, while the suggested modification is consistent with the docstring, it changes the default behaviour. To replicate the current behaviour, the
SceneObj
init should haveshow=False
(and the docstring should be updated accordingly). I'm not sure what the "correct" desired behaviour is.