<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Daniil,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>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”).</div><div class=""><br class=""></div><div class="">—Eric<br class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span class="Apple-tab-span" style="white-space: pre;"><br class="Apple-interchange-newline"> </span>Eric Pettersen</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div></div><div><blockquote type="cite" class=""><div class="">On Jul 11, 2019, at 2:58 PM, Daniil Prigozhin <<a href="mailto:DaniilPrigozhin@lbl.gov" class="">DaniilPrigozhin@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">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.</div><div class="">Many thanks,</div><div class=""><br class=""></div><div class="">- Daniil</div><div class=""><br class=""></div><div class=""><div class=""><br class=""></div><div class="">attribute: shannonEntropy</div><div class="">match mode: 1-to-1</div><div class="">recipient: residues</div><div class=""><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>#0:1.L<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>0.865</div><div class=""><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>#0:2.L<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>0.743</div></div></div></div>
_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></blockquote></div><br class=""></div></body></html>