Opened 10 years ago

Closed 10 years ago

#154 closed defect (fixed)

"color byhet" traceback

Reported by: Elaine Meng Owned by: Conrad Huang
Priority: blocker Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: chimera

Description

In the current daily build, command "color byelement" works but "color byhet" gives a traceback:

Traceback (most recent call last):
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/cmd_line/gui.py", line 117, in on_enter
cmd.execute()
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/cli.py", line 1493, in execute
results.append(ci.function(session, kw_args))
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/color.py", line 71, in color
atoms.colors = c
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/atomic/molc.py", line 125, in set_prop
% (len(values), n))
ValueError: Values array length 882 does not match objects array length 2361

Change History (1)

comment:1 by Conrad Huang, 10 years ago

Resolution: fixed
Status: newclosed

Fixed by filtering carbons from selected atoms before assigning colors.

Note: See TracTickets for help on using tickets.