Opened 6 years ago

Closed 6 years ago

#2153 closed defect (fixed)

traceback from Fit to Segments "Fit... Close placed copies"

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

Description

I *think* I added symmetry copies (1gc1 fit into EMDB 5020) with the "Show" button near the bottom of the Options in Fit to Segments. Then I tried to remove them with Fit to Segments menu: Fit... Close placed copies and got this traceback

Traceback (most recent call last):

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/segger/fit_dialog.py", line 1115, in close_copies_cb

self.session.models.close ( self.fitted_mols )

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/models.py", line 587, in close

mremoved = self.remove(models)

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/models.py", line 562, in remove

mlist.sort(key=lambda m: len(m.id), reverse=True)

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/models.py", line 562, in <lambda>

mlist.sort(key=lambda m: len(m.id), reverse=True)

TypeError: object of type 'NoneType' has no len()

TypeError: object of type 'NoneType' has no len()

File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/models.py", line 562, in
mlist.sort(key=lambda m: len(m.id), reverse=True)

Change History (1)

comment:1 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Using Close Placed Copies twice gave this error because the code did not clear the list of placed copies.

Note: See TracTickets for help on using tickets.