ForceBalance API  1.3
Automated optimization of force fields and empirical potentials
filecnv.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # Very simple file format conversion script, works in 90% of situations
4 # and good for saving keystrokes.
5 
6 from forcebalance.molecule import Molecule
7 from sys import argv
8 
9 def main():
10  topfnm = argv[3] if len(argv) >= 4 else None
11  M = Molecule(argv[1], top=topfnm)
12  M.write(argv[2])
13 
14 if __name__ == "__main__":
15  main()
def main()
Definition: filecnv.py:9