We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the examples/example.py code yields the following stack trace:
/home/leek/projects/google/neuroglancer/python/examples/example.py in <module>() 30 toNormalized(getDataValue(2)))); 31 } ---> 32 """) 33 s.append_layer(name='b', 34 layer=neuroglancer.LocalVolume( /home/leek/projects/google/neuroglancer/python/neuroglancer/viewer_state.py in append_layer(self, *args, **kwargs) 348 349 def append_layer(self, *args, **kwargs): --> 350 self.layers.append(ManagedLayer(*args, **kwargs)) /home/leek/projects/google/neuroglancer/python/neuroglancer/viewer_state.py in append(self, *args, **kwargs) 289 else: 290 layer = ManagedLayer(*args, **kwargs) --> 291 self._layers.append(layer) 292 293 def extend(self, elements): UnboundLocalError: local variable 'layer' referenced before assignment
The problem seems to be here: https://github.com/google/neuroglancer/blob/master/python/neuroglancer/viewer_state.py#L288 the line should read layer = args[0]
layer = args[0]
The text was updated successfully, but these errors were encountered:
fix(python): fix bug in Layers append method
2b03970
Fixes issue #58. Thanks to LeeKamentsky for providing the fix.
Thanks for spotting this. It's been fixed now.
Sorry, something went wrong.
No branches or pull requests
Running the examples/example.py code yields the following stack trace:
The problem seems to be here: https://github.com/google/neuroglancer/blob/master/python/neuroglancer/viewer_state.py#L288
the line should read
layer = args[0]
The text was updated successfully, but these errors were encountered: