[Chimera-users] UnitCell.molecule_center(): Attribute does not exist

Tom Goddard goddard at sonic.net
Wed Feb 11 10:20:36 PST 2015


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 at 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 at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150211/b2eb4ba5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ucell.py
Type: text/x-python-script
Size: 1102 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150211/b2eb4ba5/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20150211/b2eb4ba5/attachment-0001.html>


More information about the Chimera-users mailing list