ParM  parm
A molecular dynamics library
Variables
namereplacer Namespace Reference

Variables

tuple script_dir = Path(sys.argv[0])
 
tuple default_fs
 
list ignore_fs = [Path('pyparm') / 'd{}{}.py'.format(ndim, flt) for ndim in (2,3) for flt in ('', 'long')]
 
list fs = []
 
tuple p = Path(p)
 
string replacements = script_dir/'namereplacements.txt'
 
list lines = [l.strip().replace('\t',' ').split(' ') for l in f]
 
list cnames = []
 
tuple txt1 = f.open('r')
 
tuple txt = re.sub(r'\b\b{}\b(?![.][hc]pp)\b'.format(old), new, txt)
 

Variable Documentation

list namereplacer.cnames = []
list namereplacer.default_fs
Initial value:
1 = (
2  list(Path('src').glob('*.*pp')) +
3  list(Path('src/bin').glob('*.*pp')) +
4  [Path('src/sim.i')] +
5  list(Path('pyparm').glob('*.py')) +
6  list(Path('pyparm/examples').glob('*.py')))
namereplacer.fs = []
list namereplacer.ignore_fs = [Path('pyparm') / 'd{}{}.py'.format(ndim, flt) for ndim in (2,3) for flt in ('', 'long')]
list namereplacer.lines = [l.strip().replace('\t',' ').split(' ') for l in f]
tuple namereplacer.p = Path(p)
list namereplacer.replacements = script_dir/'namereplacements.txt'
tuple namereplacer.script_dir = Path(sys.argv[0])
tuple namereplacer.txt = re.sub(r'\b\b{}\b(?![.][hc]pp)\b'.format(old), new, txt)
tuple namereplacer.txt1 = f.open('r')