Opened 10 years ago

Closed 10 years ago

#181 closed defect (fixed)

"color byhet" dies on molecular surface

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: major Milestone:
Component: Graphics Version:
Keywords: Cc: conrad@…
Blocked By: Blocking:
Notify when closed: Platform: all
Project: chimera

Description

For example,

open 1gcn
disp
color byhet
(OK so far....)
surf
color byhet

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 121, 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 1694, 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 84, in color
ns = _set_surface_colors(session, atoms, color, opacity, bgcolor)
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 218, in _set_surface_colors
ns = scolor(session, atoms, opacity=opacity, byatom=True, per_atom_colors=c)
File "/Users/chimera/Applications/Chimera2_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimera/core/commands/scolor.py", line 54, in scolor
vcolors[v] = c[v2a[v],:]
IndexError: index 150 is out of bounds for axis 0 with size 93

Change History (2)

comment:1 by Tom Goddard, 10 years ago

Cc: conrad@… added; Tom Goddard removed
Owner: changed from Conrad Huang to Tom Goddard
Status: newassigned

I think I wrote the surface coloring code. I'll take a look.

comment:2 by Tom Goddard, 10 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Error happened when coloring a surface per-atom using some but not all of the atoms used to compute the surface.

Note: See TracTickets for help on using tickets.