Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#960 closed defect (fixed)

hbonds: TypeError: Group type mismatch

Reported by: Tom Goddard Owned by: Eric Pettersen
Priority: moderate Milestone:
Component: Structure Analysis Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

open 1bna
split atoms solvent
hb #1

gives error

127 hydrogen bonds found
Traceback (most recent call last):

File "/Users/goddard/ucsf/chimerax/ChimeraX.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/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2557, in run

result = ci.function(session, kw_args)

File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/hbonds/cmd.py", line 186, in cmd_hbonds

for s, hbs in per_structure.items()]

File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/hbonds/cmd.py", line 186, in <listcomp>

for s, hbs in per_structure.items()]

File "/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/atomic/molobject.py", line 1881, in pseudobond_group

pbg = f(self._c_pointer, name.encode('utf-8'), create_arg)

TypeError: Group type mismatch

Change History (4)

comment:1 by Eric Pettersen, 8 years ago

Status: assignedaccepted

comment:2 by Eric Pettersen, 8 years ago

Resolution: fixed
Status: acceptedclosed

"split" command wasn't preserving pseudobond group type

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

Oops!  Thanks for the fix.

comment:4 by Eric Pettersen, 8 years ago

Well, I had to also add a little code to make it possible to use the (integer) group type in the constructor call, rather than the string equivalent, so it's probably good that I worked on it.

--Eric

Note: See TracTickets for help on using tickets.