I have a Python script that constantly saves images from a given unique session inside a triple loop through the API command "png":
for i_episode in range(len(num_episodes)): for i_step in range(len(num_steps)): for i_views in range(len(num_views)): sess.cmd.png("./position_" + str(i_views), width=84, height=84, dpi=-1.0, ray=0, quiet=1) The session is always the same and I never close it during the execution of the entire program. The problem is that it does not generate the images correctly. In addition, this wrong behavior seems random up to a certain extent. That is, sometimes the execution freezes when it arrives at the aforementioned line of sess.cmd.png... Sometimes, the loop generates the images correctly for certain episodes but for others these are blank (in those cases, the files are generated but their size is only 169 bytes when it should have around 3 Kb). Is there any feature about PyMol sessions and/or png files generation that I should know beforehand when using the Python API of PyMol? Any clue to solve this issue? Many thx, Antonio Serrano -- "Este mensaje es privado y confidencial y se dirige exclusivamente a su destinatario. Si usted recibe este mensaje por error, no debe revelar, distribuir o copiar este e-mail. Por favor, comuníquelo al remitente y borre el mensaje y los archivos adjuntos de su sistema. No hay renuncia a la confidencialidad ni a ningún privilegio a causa de una transmisión errónea o por mal funcionamiento". "This message is private and confidential and it is intended exclusively for the addressee. If your receive this message by mistake, you should not disseminate, distribute or copy this e-mail. Please inform the sender and delete the message and attachments from your system. No confidentiality or any privilege regarding the information is waived or lost by any mistransmission or malfunction". No me imprimas si no es necesario.Don't print me unless it's necessary.
_______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe