Opened 8 years ago
Closed 8 years ago
#871 closed defect (fixed)
'Session' object has no attribute 'add'
Reported by: | pett | Owned by: | Conrad Huang |
---|---|---|---|
Priority: | blocker | Milestone: | Alpha 4 |
Component: | Undo/Redo | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description (last modified by )
The following commands produce an undo-related traceback:
open 1gcn
sel N
sel C
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 188, 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 2499, 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/select.py", line 36, in select
clear_selection(session, "select_clear", undo_state)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/select.py", line 153, in clear_selection
session.selection.undo_add_selected(session, undo_state, False)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/selection.py", line 79, in undo_add_selected
undo_state.add(a, "selected", orig, new_state)
AttributeError: 'Session' object has no attribute 'add'
Change History (2)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in [changeset e0763663a]. Forgot to remove unneeded session argument in undo_add_selected call.