Okay, I have changed ~setattr in a non-backwards-compatible way.  It now completely deletes the requested attributes in all objects of the requested type.  It no longer takes an atom spec.  Consequently, the normal setattr command has been enhanced to allow the value set to be “none” (i.e. Python None), which is what ~setattr used to do.  Available in the next daily build.

—Eric

On Mar 7, 2017, at 10:19 AM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:

Hi Mungo,
Yeah, the command language lacks any way to completely delete an attribute.  I could enhance ~setattr to also allow deletion, but before I do that work, can you describe why you need to completely delete the attribute rather than set its value to None?  Thanks.

—Eric

Eric Pettersen
UCSF Computer Graphics Lab


On Mar 7, 2017, at 8:32 AM, Mungo Carstairs (Staff) <g.m.carstairs@dundee.ac.uk> wrote:

Hi,

I would like to be able to set and remove residue attributes (using Chimera commands over the REST service).
Setting is fine, but removing seems to be limited to changing the value to either an empty string or None.

Is there any way to actually remove attributes after they have been set on residues?

Thanks,

Mungo

Email signature
 
University of Dundee shield logo  
Mungo Carstairs
Jalview Computational Scientist
The Barton Group
Division of Computational Biology
School of Life Sciences
University of Dundee, Dundee, Scotland, UK
University of Dundee Facebook University of Dundee Twitter University of Dundee LinkedIn University of Dundee YouTube University of Dundee Instagram University of Dundee Snapchat 
We're Scottish University of the Year again!
The Times / Sunday Times Good University Guide 2016 and 2017

The University of Dundee is a registered Scottish Charity, No: SC015096_______________________________________________
Chimera-users mailing list: Chimera-users@cgl.ucsf.edu
Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

_______________________________________________
Chimera-users mailing list: Chimera-users@cgl.ucsf.edu
Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users