[PyMOL] A strange mistake when working with files. KeyError: 'atomName' Selector-Error: Invalid selection name myFile

2015-06-09 Thread AE
Hello pyMol Users, I have recently started working with pyMol. Here is my script, which one of the users (I am not sure whether it is right or not to write the name) has helped me to fix: import os from pymol import cmd cmd.reinitialize() myDir = '/Users/User/myFolder' #print(myDir) for filenam

Re: [PyMOL] How to forbid merging of files?

2015-06-06 Thread AE
Good day, I have several thousands of files, which I upload using the loop: myDir = ‘/dirWithFiles' for filename in os.listdir(myDir): cmd.load (filename) filenameN = os.path.splitext(filename)[0] cmd.save(filenameN + '.mol') cmd.disable(filename) I am trying to s

[PyMOL] How to forbid ?

2015-06-06 Thread AE
Good day, I have several thousands of files, which I upload using the loop: myDir = ‘/dirWithFiles' for filename in os.listdir(myDir): cmd.load (filename) filenameN = os.path.splitext(filename)[0] cmd.save(filenameN + '.mol') cmd.disable(filename) I am trying to s