#2533 closed defect (fixed)
"tape measure" mouse mode: cannot unpack non-iterable NoneType object
| Reported by: | Scooter Morris | Owned by: | Tom Goddard |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Structure Analysis | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
The following bug report has been submitted: Platform: Linux-5.3.5-200.fc30.x86_64-x86_64-with-fedora-30-Thirty ChimeraX Version: 0.91 (2019-10-29) Description Trying to use the tape measure mode. Got traceback when I do a right-click. Log: UCSF ChimeraX version: 0.91 (2019-10-29) © 2016-2019 Regents of the University of California. All rights reserved. How to cite UCSF ChimeraX > open /tmp/4-24533 format dicom Missing filename suffix /tmp/4-24533 > open 1hgg format mmCIF fromDatabase pdb Summary of feedback from opening 1hgg fetched from pdb --- warnings | Atom H1 is not in the residue template for GLN #1 in chain A Atom H1 is not in the residue template for GLY #1 in chain B Atom H1 is not in the residue template for GLN #1 in chain C Atom H1 is not in the residue template for GLY #1 in chain D Atom H1 is not in the residue template for GLN #1 in chain E 1 messages similar to the above omitted 1hgg title: Binding of influenza virus hemagglutinin to analogs of its cell-surface receptor, sialic acid: analysis by proton nuclear magnetic resonance spectroscopy and X-ray crystallography [more info...] Chain information for 1hgg #1 --- Chain | Description A C E | hemagglutinin, chain HA1 B D F | hemagglutinin, chain HA2 Non-standard residues in 1hgg #1 --- BGC — β-D-glucose BMA — β-D-mannose GAL — β-D-galactose NAG — N-acetyl-D-glucosamine SIA — O-sialic acid > ui mousemode rightMode "tape measure" > close > open /tmp/4-24533 format dicom Opened CHEST CT 4, grid size 512,512,236, pixel 0.576,0.576,1.25, shown at step 1, values int16 > ui mousemode rightMode "tape measure" Traceback (most recent call last): File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/mouse_modes/mousemodes.py", line 463, in <lambda> gw.mousePressEvent = lambda e, s=self: s._dispatch_mouse_event(e, "mouse_down") File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/mouse_modes/mousemodes.py", line 392, in _dispatch_mouse_event f(MouseEvent(event, modifiers=modifiers)) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 32, in mouse_down p, v = self._picked_point(event) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 132, in _picked_point pm, vm = method(xyz1, xyz2) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 170, in _volume_maximum_point sxyz, v = first_volume_maxima(xyz1, xyz2, vlist) TypeError: cannot unpack non-iterable NoneType object TypeError: cannot unpack non-iterable NoneType object File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 170, in _volume_maximum_point sxyz, v = first_volume_maxima(xyz1, xyz2, vlist) See log for complete Python traceback. Traceback (most recent call last): File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/mouse_modes/mousemodes.py", line 463, in <lambda> gw.mousePressEvent = lambda e, s=self: s._dispatch_mouse_event(e, "mouse_down") File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/mouse_modes/mousemodes.py", line 392, in _dispatch_mouse_event f(MouseEvent(event, modifiers=modifiers)) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 32, in mouse_down p, v = self._picked_point(event) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 132, in _picked_point pm, vm = method(xyz1, xyz2) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 170, in _volume_maximum_point sxyz, v = first_volume_maxima(xyz1, xyz2, vlist) TypeError: cannot unpack non-iterable NoneType object TypeError: cannot unpack non-iterable NoneType object File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 170, in _volume_maximum_point sxyz, v = first_volume_maxima(xyz1, xyz2, vlist) See log for complete Python traceback. Traceback (most recent call last): File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/mouse_modes/mousemodes.py", line 463, in <lambda> gw.mousePressEvent = lambda e, s=self: s._dispatch_mouse_event(e, "mouse_down") File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/mouse_modes/mousemodes.py", line 392, in _dispatch_mouse_event f(MouseEvent(event, modifiers=modifiers)) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 32, in mouse_down p, v = self._picked_point(event) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 132, in _picked_point pm, vm = method(xyz1, xyz2) File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 170, in _volume_maximum_point sxyz, v = first_volume_maxima(xyz1, xyz2, vlist) TypeError: cannot unpack non-iterable NoneType object TypeError: cannot unpack non-iterable NoneType object File "/usr/local/chimerax/lib/python3.7/site- packages/chimerax/atomic/tape_measure/tape.py", line 170, in _volume_maximum_point sxyz, v = first_volume_maxima(xyz1, xyz2, vlist) See log for complete Python traceback. OpenGL version: 3.3.0 NVIDIA 430.40 OpenGL renderer: GeForce GTX 750 Ti/PCIe/SSE2 OpenGL vendor: NVIDIA Corporation
Change History (4)
comment:1 by , 6 years ago
| Component: | Unassigned → Structure Analysis |
|---|---|
| Owner: | set to |
| Platform: | → all |
| Project: | → ChimeraX |
| Status: | new → assigned |
| Summary: | ChimeraX bug report submission → "tape measure" mouse mode: cannot unpack non-iterable NoneType object |
comment:3 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed.
Yes tape measure does support DICOM and all volume formats. This error happens when a volume is using image style display and has never shown a surface. It was trying to use the surface level to know how deep in the image to pick. Sorry, I never tested this case of a volume with no surface.
follow-up: 4 comment:4 by , 6 years ago
Guess that shows us the value of the least knowledgeable person in the lab writing the progress report :-) -- scooter On 10/29/19 2:37 PM, ChimeraX wrote:
Note:
See TracTickets
for help on using tickets.