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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

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