UnitCell.molecule_center(): Attribute does not exist

Hello all, I'm trying to execute the script to fill out the crystal unit cell found here: http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/faq.html#q13 However, I get the error that UnitCell does not have the 'molecule_center' attribute (code line ~12). I checked with dir(), and yeah, it's not there: ['ModelessDialog', 'Unit_Cell_Dialog', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'chimera', 'dialogs', 'find_model_by_name', 'outline_box', 'place_molecule_copies', 'remove_extra_copies', 'show_unit_cell_dialog'] Where did the attribute go? Is there some other module I could use? Could someone explain (or direct me to some webpage that explains) the process of expanding the ASU and I can write my own script. Any help is greatly appreciated! Thanks! Alex

Hi Alex, There were in fact two problems in the unit cell example code caused by changes in Chimera Python APIs over the years. I’ve updated the example — the web site will be updated over night. The fixed code is attached. Thanks for reporting the problem. Tom
On Feb 11, 2015, at 8:50 AM, Alejandro Virrueta <alejandro.virrueta@yale.edu> wrote:
Hello all,
I'm trying to execute the script to fill out the crystal unit cell found here: http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/faq.html#q13 <http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/faq.html#q13>
However, I get the error that UnitCell does not have the 'molecule_center' attribute (code line ~12). I checked with dir(), and yeah, it's not there:
['ModelessDialog', 'Unit_Cell_Dialog', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'chimera', 'dialogs', 'find_model_by_name', 'outline_box', 'place_molecule_copies', 'remove_extra_copies', 'show_unit_cell_dialog']
Where did the attribute go? Is there some other module I could use? Could someone explain (or direct me to some webpage that explains) the process of expanding the ASU and I can write my own script.
Any help is greatly appreciated! Thanks! Alex _______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
participants (2)
-
Alejandro Virrueta
-
Tom Goddard