Opened 6 years ago

Closed 6 years ago

#1990 closed defect (fixed)

model-list widgets need to respond to name changes

Reported by: goddard@… Owned by: pett
Priority: normal Milestone:
Component: General Controls Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.6.0-x86_64-i386-64bit
ChimeraX Version: 0.91 (2019-06-01)
Description
Saving map 1080 using the File / Save dialog changed the model's name from 1080 to test.mrc.  Then opening a second map produced this error, apparently because the model menu didn't detect the name change.

(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 0.91 (2019-06-01)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 1080 fromDatabase emdb vseries true

Opened emd_1080.map, grid size 100,100,100, pixel 2.7, shown at level 1.67,
step 1, values float32  

> save /Users/goddard/ucsf/chimerax/src/bundles/map/test.mrc models #1

> open 1011 fromDatabase emdb

Traceback (most recent call last):  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 280, in _items_change  
prev_value = self.value  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 255, in value  
return self.item_map[text]  
KeyError: '1080 #1'  
  
Error processing trigger "add models": '1080 #1':  
KeyError: '1080 #1'  
  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 255, in value  
return self.item_map[text]  
  
See log for complete Python traceback.  
  
Opened emd_1011.map, grid size 256,256,256, pixel 3.44, shown at level
1.4e+04, step 1, values float32  




OpenGL version: 4.1 ATI-2.9.26
OpenGL renderer: AMD Radeon Pro 580 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedGeneral Controls
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionmodel-list widgets need to respond to name changes

comment:2 by pett, 6 years ago

Resolution: fixed
Status: acceptedclosed

Update menu button if model name (only) changes

Note: See TracTickets for help on using tickets.