navis-org / pymaid

Python library to interface with CATMAID servers. Fully interoperable with navis.
https://pymaid.readthedocs.io/en/latest/
GNU General Public License v3.0
23 stars 11 forks source link

module 'pymaid' has no attribute 'Viewer' #208

Closed michaelsmclayton closed 3 years ago

michaelsmclayton commented 3 years ago

Hi, perhaps similar to pgibb96, but it seems the Viewer module is now missing?

schlegelp commented 3 years ago

Hard to debug without knowing what exactly it is you are trying to do when getting this error. In general it's a good idea to post the full error traceback and a minimal example to reproduce the error.

That being said: as of version 2.0.0, pymaid has no Viewer anymore as the entire visualization and many other general neuron functions have been moved to navis. In almost all cases you will be able to simply replace pymaid.some_function with navis.some_function. So for the viewer, for example:

n = pymaid.get_neuron(16)
v = navis.Viewer()
v.add(n)
michaelsmclayton commented 3 years ago

Thank very much for this quick reply! Yes I think I have been working with an older version. It looks like I will need to update my code to this newest version.

BTW, I am a new postdoc in Marta Zlatic's lab at the LMB, and am really loving pymaid! Thank you very much for making this great software 👍

schlegelp commented 3 years ago

Cool. Sorry for the birthing pains with making pymaid dependent on navis but it makes my life much much easier in the long run :)

schlegelp commented 3 years ago

Can I close this issue @michaelsmclayton ?

michaelsmclayton commented 3 years ago

Sorry for my delayed reply. Yes feel free to close this issue. Thanks again for your help.