12def pers_to_trans_name(p):
13
14 t = p
15
16 vers = re.findall( r'_v\d+',t )
17 if len(vers)>1:
18 cnm_log.warning('Input name '+p+' seems to have multiple version numbers: '+str(vers)+' - will wipe them all')
19 for v in vers:
20
21 t = t.replace(v,'')
22
23 if 'DataVector<' in t:
24 t = t.replace(
'DataVector<',
'').
replace(
'>',
'')
25 t = 'Container#'.join(t.split('#'))
26 cnm_log.debug('Translated '+p+' to '+t)
27 return t
std::string replace(std::string s, const std::string &s2, const std::string &s3)