Opened 5 years ago
Closed 5 years ago
#3120 closed defect (fixed)
setting fixed pixel height for labels → traceback
Reported by: | pett | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Graphics | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
The following bug report has been submitted: Platform: Darwin-18.7.0-x86_64-i386-64bit ChimeraX Version: 0.93 (2020-04-03) Description Tried to set the height of labels to 12 pixels with "label size 12 height fixed" Log: Startup Messages --- warning | 'clip' is a prefix of an existing command 'clipper' UCSF ChimeraX version: 0.93 (2020-04-03) © 2016-2020 Regents of the University of California. All rights reserved. How to cite UCSF ChimeraX > open 1gcn format mmCIF fromDatabase pdb 1gcn title: X-ray analysis of glucagon and its relationship to receptor binding [more info...] Chain information for 1gcn #1 --- Chain | Description A | glucagon > label size 12 height fixed Label command requires an atom specifier to create labels. > select /A:13 12 atoms, 12 bonds, 1 model selected > label > label sel > label size 12 height fixed Traceback (most recent call last): File "/Applications/ChimeraX-0.93.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 "/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/label/label3d.py", line 434, in _update_graphics_if_needed self._rebuild_label_graphics() File "/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/label/label3d.py", line 446, in _rebuild_label_graphics va = self._label_vertices() File "/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/label/label3d.py", line 515, in _label_vertices rects = [l._label_rectangle(spos, cposd) for l in self._labels if not l.object_deleted] File "/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/label/label3d.py", line 515, in <listcomp> rects = [l._label_rectangle(spos, cposd) for l in self._labels if not l.object_deleted] File "/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/label/label3d.py", line 695, in _label_rectangle w, h = sh*pw/ph, sh TypeError: unsupported operand type(s) for /: 'str' and 'int' Error processing trigger "graphics update": TypeError: unsupported operand type(s) for /: 'str' and 'int' File "/Applications/ChimeraX-0.93.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site- packages/chimerax/label/label3d.py", line 695, in _label_rectangle w, h = sh*pw/ph, sh See log for complete Python traceback. OpenGL version: 4.1 INTEL-12.10.16 OpenGL renderer: Intel(R) Iris(TM) Pro Graphics 6200 OpenGL vendor: Intel Inc.
Change History (2)
comment:1 by , 5 years ago
Component: | Unassigned → Graphics |
---|---|
Owner: | set to |
Platform: | → all |
Project: | → ChimeraX |
Status: | new → assigned |
Summary: | ChimeraX bug report submission → setting fixed pixel height for labels → traceback |
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed.
When the label command default_height option was added the handling of fixed height was broken.