limitation size in the hierarchy ?

Questions about BrainVisa usage and installation

Moderators: denghien, riviere

Post Reply
User avatar
alexis
Posts: 43
Joined: Mon Jan 31, 2005 4:21 pm
Location: Paris
Contact:

limitation size in the hierarchy ?

Post by alexis »

Hi to all !

We are modifying the hierarchy and experiencing the following issue : we can't add some elements and the error in the log is something like :
SyntaxError: more than 255 arguments (shfjHierarchy.py, line 623)

So I would like to know if there's a limit in the contents of the hierarchy (and if so is it for the hierarchy in general, or for each sub-elements...:roll: ), or if it comes from us....

Bye
Alexis Barbot
CNRS UPR640 LENA
User avatar
alexis
Posts: 43
Joined: Mon Jan 31, 2005 4:21 pm
Location: Paris
Contact:

Post by alexis »

It seems that it's a problem with 'setContent', and a more general pb to python to pass more than 255 arguments to a method.

So maybe we could create one more level, so that the 'setContent' have less arguments.

What do you think?
Alexis Barbot
CNRS UPR640 LENA
User avatar
Yann Cointepas
Posts: 316
Joined: Tue Jan 20, 2004 2:56 pm
Location: Neurospin, Saint Aubin, France
Contact:

Post by Yann Cointepas »

The other solution is to put SetContent arguments in a tuple or a list (let's call it args) and use SetContents( *args ). In that way more than 255 parameters are possible.
Post Reply