Re: [PyMOL] Execution time of color command

2017-03-01 Thread Leonhard Heizinger
Hi Thomas, Thank you for your answer! Your solution works great! It's very handy to directly set RGB colors using alter! Thanks for your help! Best, Leonhard On 28.02.2017 16:41, Thomas Holder wrote: > Hi Leonhard, > > Very interesting analysis. I'm wondering if this slowdown actually scale

Re: [PyMOL] Execution time of color command

2017-02-28 Thread Thomas Holder
Hi Leonhard, Very interesting analysis. I'm wondering if this slowdown actually scales with number of objects or rather total number of atoms. If your color scheme lookup by (object, resi) key is fast in Python (let's say you have it all in a dictionary), then you can use cmd.alter() with a sin

[PyMOL] Execution time of color command

2017-02-28 Thread Leonhard Heizinger
Hi, coloring a certain residue in an object takes about 4 ms when only one object is loaded in PyMol: %time cmd.color("blue", "obj1of1 and resi 1") CPU times: user 3.33 ms, sys: 0 ns, total: 3.33 ms Wall time: 4.13 ms Performing the same operation when a lot of other objects (~300) are load