test the problem of parameters on each net to cat

This commit is contained in:
Roselyne Chotin 2012-11-13 20:38:59 +00:00
parent 94e57d651f
commit bb29bc3057
1 changed files with 3 additions and 3 deletions

View File

@ -76,9 +76,6 @@ def Cat ( *nets ) :
else:
netstries.insert ( 0, net )
if ( "_arity" not in net.__dict__ ) or ( "_real_net" not in net.__dict__ ) or ( "_ind" not in net.__dict__ ) :
err = "\n[Stratus ERROR] Cat : Problem of parameter.\n"
raise Exception ( err )
# Construction of the tab _to_cat if needed
if not ( len ( netToCat._to_cat ) ) :
@ -87,6 +84,9 @@ def Cat ( *nets ) :
# Initialisation of _to_cat
for net in netstries :
if ( "_arity" not in net.__dict__ ) or ( "_real_net" not in net.__dict__ ) or ( "_ind" not in net.__dict__ ) :
err = "\n[Stratus ERROR] Cat : Problem of parameter.\n"
raise Exception ( err )
if net._real_net : realNet = net._real_net
else : realNet = net