naming.py
Go to the documentation of this file.
00001 from __future__ import print_function
00002 
00003 import re
00004 
00005 
00006 
00007 def sdf2tfname(sdfname):
00008   return sdfname.replace('::', '__').replace('@', 'AT')
00009 
00010 
00011 def name2modelname(name):
00012   # Cope with
00013   # - adding the same model multiple times through the GUI
00014   # - renamed models (e.g. because model occurs multiple times as sub-model)
00015   modelname = re.sub('_[0-9]*$', '', name)
00016   modelname = re.sub('@.*$', '', modelname)
00017   return modelname


pysdf
Author(s): Andreas Bihlmaier
autogenerated on Fri Oct 3 2014 22:09:51