Opened 3 years ago

Closed 3 years ago

#8066 closed defect (fixed)

saving attribute values

Reported by: bjorn.forsberg@… Owned by: Eric Pettersen
Priority: normal Milestone:
Component: Structure Analysis Version:
Keywords: Cc: Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hi, I'm unable to save attributes created by "measure mapvalue"

Procedure:
open map.mrc
open chain_A.pdb
measure mapvalues #1 atoms #2 attribute myAttr
save myAttr.defattr attrName myAttr models #2

Result:
One or more attribute values aren't integer, floating-point, string or None (e.g. 0.40130895); skipping those

And the output file is basically empty:
attribute: myAttr
recipient: atoms
match mode: any

Why is it reporting floating values like 0.401... as neither float nor string?

Thanks!

Bjoern




När du skickar e-post till Karolinska Institutet (KI) innebär detta att KI kommer att behandla dina personuppgifter. Här finns information om hur KI behandlar personuppgifter<https://ki.se/medarbetare/integritetsskyddspolicy>.


Sending email to Karolinska Institutet (KI) will result in KI processing your personal data. You can read more about KI's processing of personal data here<https://ki.se/en/staff/data-protection-policy>.

Change History (2)

comment:1 by Eric Pettersen, 3 years ago

Cc: Tom Goddard added
Component: UnassignedStructure Analysis
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted

comment:2 by Eric Pettersen, 3 years ago

Resolution: fixed
Status: acceptedclosed

Hi Björn,

Thanks for reporting this problem. The problem is that the "measure mapvalues" produces specialized numpy numeric types instead the standard Python integer / floating-point types. I have fixed the saving of .defattr files to also handle the numpy types and the fix will be in tomorrow's daily build.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

Note: See TracTickets for help on using tickets.