Opened 8 years ago

Closed 8 years ago

#788 closed defect (fixed)

hbonds "selrestrict both" causes error

Reported by: Elaine Meng Owned by: pett
Priority: major Milestone:
Component: Structure Analysis Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

This may be moot since you're getting rid of the selrestrict option, but thought I should report it. Example:

open 1zik
sel /a
hb selres both

40 hydrogen bonds found
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 177, 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 2395, 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/hbonds/cmd.py", line 137, in cmd_hbonds
pbg.dashes = dashes if dashes is not None else AtomicStructure.default_hbond_dashes
UnboundLocalError: local variable 'AtomicStructure' referenced before assignment

Change History (1)

comment:1 by pett, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed as a side effect of findclash-like command syntax changes

Note: See TracTickets for help on using tickets.