Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#1092 closed defect (fixed)

rainbow broken

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: major Milestone:
Component: Depiction Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

"rainbow" command (doesn't seem to matter what structure) gives traceback. E.g.

open 2gbp
rainbow

Traceback (most recent call last):

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/cmd_line/tool.py", line 205, in execute

cmd.run(cmd_text)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2622, in run

result = ci.function(session, kw_args)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/rainbow.py", line 20, in rainbow

level=level, palette=palette, undo_name="rainbow")

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/color.py", line 907, in color_sequential

f(session, objects, palette, opacity, target, undo_state)

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/color.py", line 370, in _set_sequential_residue

for structure, chain_id, atoms in selected.atoms.by_chain:

AttributeError: 'NoneType' object has no attribute 'atoms'

AttributeError: 'NoneType' object has no attribute 'atoms'

File "/Users/meng/Desktop/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/color.py", line 370, in _set_sequential_residue
for structure, chain_id, atoms in selected.atoms.by_chain:

See log for complete Python traceback.

version
UCSF ChimeraX version: 0.7 (2018-04-19)

Change History (2)

comment:1 by Tom Goddard, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

New color sequential subcommand forgot to handle case when no objects specified.

in reply to:  2 ; comment:2 by goddard@…, 8 years ago

Oops.  I tested “rainbow #1” yesterday and it worked.  But I see with no model spec it gives an error.  Will fix it today.

Note: See TracTickets for help on using tickets.