From bb29bc3057c955527d2b9a3f8c91dc4283fe9ee4 Mon Sep 17 00:00:00 2001 From: Roselyne Chotin Date: Tue, 13 Nov 2012 20:38:59 +0000 Subject: [PATCH] test the problem of parameters on each net to cat --- stratus1/src/stratus/st_cat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stratus1/src/stratus/st_cat.py b/stratus1/src/stratus/st_cat.py index ff58589b..606420eb 100644 --- a/stratus1/src/stratus/st_cat.py +++ b/stratus1/src/stratus/st_cat.py @@ -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