CAVEconnectome / nglui

https://caveconnectome.github.io/nglui/
MIT License
10 stars 4 forks source link

Issue with `json` output #57

Open bdpedigo opened 4 days ago

bdpedigo commented 4 days ago
from nglui import statebuilder as sb

root_id = 864691136137805181

state_dict = sb.make_neuron_neuroglancer_link(client, root_id, return_as="json")

gives

TypeError: ChainedStateBuilder.render_state() got an unexpected keyword argument 'ngl_url'

the same thing runs without changing return_as

bdpedigo commented 4 days ago

https://github.com/CAVEconnectome/nglui/blob/9478be4c7f04d346cefe89301ba6304ad3dd093b/src/nglui/statebuilder/helpers.py#L493 this line passes in ngl_url but I don't see that kwarg defined for either StateBuilder https://github.com/CAVEconnectome/nglui/blob/656b81705c06944ef42dde90e7eca47c1b173ea2/src/nglui/statebuilder/statebuilder.py#L149 or ChainedStateBuilder https://github.com/CAVEconnectome/nglui/blob/656b81705c06944ef42dde90e7eca47c1b173ea2/src/nglui/statebuilder/statebuilder.py#L293