Opened 8 years ago

Closed 8 years ago

#858 closed defect (fixed)

traceback changing cartoon tube radius in separate command

Reported by: Elaine Meng Owned by: Conrad Huang
Priority: major Milestone:
Component: Undo/Redo Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

A single command setting both modeHelix and radius works, but I get a traceback if it's done in two separate commands:

cartoon style modeHelix tube
cartoon style radius 1.5

Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/cmd_line/tool.py", line 189, in execute
cmd.run(cmd_text)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2459, in run
result = ci.function(session, kw_args)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cartoon.py", line 531, in cartoon_style
undo_state.add(mgr, "set_tube_radius", mgr.tube_radius, mode, "M")
UnboundLocalError: local variable 'mode' referenced before assignment

Change History (2)

comment:1 by Elaine Meng, 8 years ago

Component: DepictionUndo/Redo

comment:2 by Conrad Huang, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed in 7f520101f.

Note: See TracTickets for help on using tickets.