"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/chempy/generate_mmff.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

generate_mmff.py  (pymol-v1.8.6.0.tar.bz2):generate_mmff.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 27 skipping to change at line 27
model= protein.generate(model,forcefield=protein_mmff,bondfield=bond_mmff) model= protein.generate(model,forcefield=protein_mmff,bondfield=bond_mmff)
for a in model.atom: for a in model.atom:
a.numeric_type = protein_mmff.alpha_map[a.text_type] a.numeric_type = protein_mmff.alpha_map[a.text_type]
sm = 0 sm = 0
for a in model.atom: for a in model.atom:
sm = sm + a.partial_charge sm = sm + a.partial_charge
print " prot: net partial charge on protein is %8.3f" % sm print(" prot: net partial charge on protein is %8.3f" % sm)
print " prot: (this should be integral)!" print(" prot: (this should be integral)!")
io.pkl.toFile(model,"generate_mmff.pkl") io.pkl.toFile(model,"generate_mmff.pkl")
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)