Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
from __future__ import print_function
import re
def sdf2tfname(sdfname): return sdfname.replace('::', '__').replace('@', 'AT')
def name2modelname(name): # Cope with # - adding the same model multiple times through the GUI # - renamed models (e.g. because model occurs multiple times as sub-model) modelname = re.sub('_[0-9]*$', '', name) modelname = re.sub('@.*$', '', modelname) return modelname
|