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