Hi Shawn, Tom, Eric,
thanks a lot for the help and for pointing me in the right
direction. Finally I had some time and I've come up with a script
that adjusts the volume level threshold from the active model to
all opened models. For one model it's not a problem, but when one
wants to adjust the levels for a series of volumes (for example
after a 3d classification run in relion), it becomes cumbersome to
do so for the ~50 models/run. Maybe other EM users find it handy,
that's why I'd like to share it.
It took me quite some time to find the right functions, which do
the actual measurement. Got lost in the OpenModels.h, volume.py,
volumedialog.py, and the gui scripts. The rest was easy :-) Thanks
again for your help!
Best,
Martin Turk
Beckmann Lab
LMU Gence Center Munich
On 18.11.2013 20:49, Eric Pettersen wrote:
To supplement Shawn and Tom's answers, obviously it would be best
if everything were documented, but in the absence of that if there
is a command that implements something similar to what you want to
do, you can chase it down in the code base by:
a)
looking at Midas/__init__.py and see if it's one of the
functions in there (they're arranged approximately
alphabetically by command name), and if it's not in there…
b)
grep share/*/ChimeraExtension.py for the command name to find
which module defines the command. Then look in that module's
ChimeraExtension.py to see what file/method in the module
implements the command.
--Eric
Eric
Pettersen
UCSF
Computer Graphics Lab