Opened 6 years ago

Closed 6 years ago

#2313 closed defect (fixed)

KeyError in map chooser

Reported by: s.gutierrez@… Owned by: Eric Pettersen
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:        Linux-4.15.0-55-generic-x86_64-with-debian-buster-sid
ChimeraX Version: 0.91 (2019-08-13)
Description
KeyError: 'model_5_origin.pdb map 5 #3'

File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-packages/chimerax/ui/widgets/item_chooser.py", line 259, in value
return self.item_map[text]

See log for complete Python traceback

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

> open /home/sacosta/FERRITIN/EXP/volume1.map

Opened volume1.map, grid size 140,140,140, pixel 1, shown at level 0.137, step
1, values float32  

> open /home/sacosta/FERRITIN/UNBIASED-MD/model_5_origin.pdb

Chain information for model_5_origin.pdb #2  
---  
Chain | Description  
A | No description available  
B C D E F G H I J K L M N O P Q R S T U V W X | No description available  
  

> toolshed show "Fit in Map"

> toolshed show "Map Coordinates"

Fit map model_5_origin.pdb map 5 in map volume1.map using 126161 points  
correlation = 0.7241, correlation about mean = 0.05014, overlap = 3031  
steps = 88, shift = 2.12, angle = 4.61 degrees  
  
Position of model_5_origin.pdb map 5 (#3) relative to volume1.map (#1)
coordinates:  
Matrix rotation and translation  
0.99687415 0.07852882 -0.00866902 1.76908817  
-0.07839103 0.99680635 0.01522988 0.32175792  
0.00983732 -0.01450270 0.99984644 1.12283146  
Axis -0.18492655 -0.11510316 -0.97598844  
Axis point 2.73396998 -18.98078861 0.00000000  
Rotation angle (degrees) 4.61099584  
Shift along axis -1.46005725  
  
Average map value = 0.05902 for 65101 atoms, 62998 outside contour  

> save /home/sacosta/FERRITIN/UNBIASED-MD/model_5_origin.cmap models #3

> open /home/sacosta/FERRITIN/UNBIASED-MD/model_10_origin.pdb

Chain information for model_10_origin.pdb #4  
---  
Chain | Description  
A | No description available  
B C D E F G H I J K L M N O P Q R S T U V W X | No description available  
  
Fit map model_10_origin.pdb map 5 in map volume1.map using 126087 points  
correlation = 0.7164, correlation about mean = 0.04372, overlap = 3014  
steps = 88, shift = 2.5, angle = 5.16 degrees  
  
Position of model_10_origin.pdb map 5 (#5) relative to volume1.map (#1)
coordinates:  
Matrix rotation and translation  
0.99955948 0.00776293 -0.02864577 2.16718952  
-0.00530458 0.99637386 0.08491762 0.85777627  
0.02920110 -0.08472826 0.99597611 0.90963136  
Axis -0.94398249 -0.32188483 -0.07271323  
Axis point 0.00000000 8.71862223 -0.67699282  
Rotation angle (degrees) 5.15535018  
Shift along axis -2.38803636  
  
Average map value = 0.05876 for 65101 atoms, 62938 outside contour  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/gui.py", line 871, in <lambda>  
save_action.triggered.connect(lambda arg, s=self, sess=session:
s.file_save_cb(sess))  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/gui.py", line 601, in file_save_cb  
self.save_dialog.display(self, session)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/save_dialog.py", line 114, in display  
fmt.update(session, self)  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/map/savemap.py", line 67, in update  
self._map_menu.value = m  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 273, in value  
or (val is not None and self.value == val):  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 250, in value  
self._sleep_check()  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 81, in _sleep_check  
self._items_change()  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 291, in _items_change  
prev_value = self.value  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 259, in value  
return self.item_map[text]  
KeyError: 'model_5_origin.pdb map 5 #3'  
  
KeyError: 'model_5_origin.pdb map 5 #3'  
  
File "/usr/lib/ucsf-chimerax-daily/lib/python3.7/site-
packages/chimerax/ui/widgets/item_chooser.py", line 259, in value  
return self.item_map[text]  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 430.26
OpenGL renderer: GeForce RTX 2070/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by Eric Pettersen, 6 years ago

Component: UnassignedGeneral Controls
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissionKeyError in map chooser

Reported by Silvia Gutierrez

comment:2 by Eric Pettersen, 6 years ago

Resolution: fixed
Status: acceptedclosed

Fixed. Fix available in the next daily build. Thanks for reporting this error!

--Eric

Note: See TracTickets for help on using tickets.