correct bug in lower of net's name
This commit is contained in:
parent
f2849cb25a
commit
1917f64d56
|
@ -876,7 +876,7 @@ class net :
|
||||||
# Error :
|
# Error :
|
||||||
if re.search ( "[A-Z]", nom ) :
|
if re.search ( "[A-Z]", nom ) :
|
||||||
print "[Stratus Warning] : Upper case letters are not supported, the name", nom, "is lowered."
|
print "[Stratus Warning] : Upper case letters are not supported, the name", nom, "is lowered."
|
||||||
nom.lower ()
|
nom = nom.lower ()
|
||||||
if re.search ( " ", nom ) :
|
if re.search ( " ", nom ) :
|
||||||
chaine = re.search ( "st_net\.(.*)", str ( self.__class__ ) )
|
chaine = re.search ( "st_net\.(.*)", str ( self.__class__ ) )
|
||||||
classe = chaine.group(1)
|
classe = chaine.group(1)
|
||||||
|
|
Loading…
Reference in New Issue