Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

error when running plot_cortical()

45 views
Skip to first unread message

Ernesto Sanz-Arigita

unread,
Jun 22, 2022, 6:49:15 AM6/22/22
to enigma-toolbox
Dear enigma team

Thank you so much for the software.
I run into a problem when testing the principal components analysis from the examples of the tutorial (https://enigma-toolbox.readthedocs.io/en/latest/_modules/enigmatoolbox/datasets/base.html).

The code run till the plot_cortical() function, when it returned:

File ~/ENIGMA/enigmatoolbox/vtk_interface/pipeline.py:64, in connect(ftr0, ftr1, port0, port1, add_conn)
62 pinfo = ftr1.GetInputPortInformation(port1)
63 if pinfo.Get(ftr1.INPUT_IS_REPEATABLE()) == 0:
---> 64 raise ValueError("Input port {0} of '{1}' does not " 
65 "accept multiple connections.".
66 format(ftr1.nip, ftr1.__vtkname__)) 
68 if isinstance(add_conn, int): 
69 if not hasattr(ftr1, 'GetUserManagedInputs') or \
70 ftr1.GetUserManagedInputs() == 0:
ValueError: Input port 1 of ''vtkPolyDataNormals'' does not accept multiple connections.

Same error with plot_subcortical().

Any ideas on how to solve this, or a work-around?

Many thanks!

Ernesto

Ernesto Sanz-Arigita

unread,
Jun 22, 2022, 7:00:56 AM6/22/22
to enigma-toolbox
Sorry, forgot to add:
I'm running the python script (on Python 3.8.10)

Cheers

Ernesto
Reply all
Reply to author
Forward
0 new messages