[Chimera-users] Integer Values instead of Floats in Render by Attribute

Eric Pettersen pett at cgl.ucsf.edu
Thu Jul 11 16:04:20 PDT 2019

Hi Daniil,
	Rander/Select By Attribute decides what type a particular attribute is based on the first value that it sees.  Therefore, you have to ensure that all your attributes are indeed floating point with no integers mixed in.  So in your attribute-definition file, make sure that any values that also happen to be integers have decimal points (e.g. “1.0” rather than just “1”).


	Eric Pettersen
	UCSF Computer Graphics Lab

> On Jul 11, 2019, at 2:58 PM, Daniil Prigozhin <DaniilPrigozhin at lbl.gov> wrote:
> Hello,
> I am using the latest nightly build and in the Render/Select by attribute window the values in the Value box (defining the color scheme) are reported as integers and accept only integer input, when in fact the Attribute that I defined is a float, and shows up as a float. This does not happen with "native" attributes, only with the newly defined one. Is it a problem with the defattr function not determining/passing the data type correctly? I am pasting the top of the attribute deffinition file below.
> Many thanks,
> - Daniil
> attribute: shannonEntropy
> match mode: 1-to-1
> recipient: residues
> 	#0:1.L	0.865
> 	#0:2.L	0.743
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: 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/20190711/e00fda18/attachment.html>

More information about the Chimera-users mailing list