Opened 6 years ago

Closed 6 years ago

#3007 closed defect (fixed)

Cartoon tube helix error

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

Description

The following bug report has been submitted:
Platform:        Darwin-19.3.0-x86_64-i386-64bit
ChimeraX Version: 0.93 (2020-04-01)
Description
Tube helix error.

Log:
UCSF ChimeraX version: 0.93 (2020-04-01)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 6owg format mmCIF fromDatabase pdb

6owg title:  
Structure of a synthetic beta-carboxysome shell, T=4 [more info...]  
  
Chain information for 6owg #1  
---  
Chain | Description  
0 2 3 4 6 7 8 A A0 A1 A2 A4 A5 A6 A8 A9 AA AC AD AE AG AH AI AK AL AM AO AP AQ
AS AT AU AW AX AY B B0 B1 B2 B4 B5 B6 B8 B9 BA BC BD BE BG BH BI BK BL BM BO
BP BQ BS BT BU BW BX BY C C0 C1 C2 C4 C5 C6 C8 C9 CA CC CD CE CG CH CI CK CL
CM CO CP CQ CS CT CU CW CX CY D0 D1 D2 D4 D5 D6 D8 D9 DA DC DD DE DG DH DI DK
DL DM DO DP DQ DS DT DU DW DX DY E E0 E1 E2 E4 E5 E6 EA EC ED EE EG EH EI EK
EL EM EO EP EQ ES ET EU EW EX EY F G I J K M N O Q R S U V W Y Z a b c e f g i
j k m n o q r s u v w y z | Microcompartments protein  
1 5 9 A3 A7 AB AF AJ AN AR AV AZ B3 B7 BB BF BJ BN BR BV BZ C3 C7 CB CF CJ CN
CR CV CZ D D3 D7 DB DF DJ DN DR DV DZ E3 E7 EB EF EJ EN ER EV EZ H L P T X d h
l p t x | Ethanolamine utilization protein EutN/carboxysome structural protein
Ccml  
  
  

> hide atoms

> time ribbon

> ribbon

command time 0.02381 seconds  
draw time 1.534 seconds  

> usage cartoon style

cartoon style [atoms] [width a number] [thickness a number] [arrows true or
false] [arrowsHelix true or false] [arrowScale arrowScale] [xsection xsection]
[sides sides] [divisions divisions] [barScale a number] [barSides barSides]
[modeHelix modeHelix] [radius radius]  
— set cartoon style for secondary structures in specified models  
arrowScale: a number ≥ 1.0 and ≤ 5.0  
xsection: one of barbell, oval, piping, rectangle, round, or square  
sides: an even integer ≥ 3 and ≤ 24  
divisions: an integer ≥ 2 and ≤ 40  
barSides: an even integer ≥ 3 and ≤ 24  
modeHelix: one of default, tube, or wrap  
radius: a number or auto  

> time cartoon syle mode tube

Expected an atoms specifier or a keyword  

> time cartoon style mode tube

Expected keyword "modeHelix" or "modeStrand"  

> time cartoon style modeHelix tube

> cartoon style modeHelix tube

command time 0.002993 seconds  
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/atomic/structure.py", line 1536, in
_update_graphics_if_needed  
s[i]._update_graphics_if_needed()  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/structure.py", line 297, in
_update_graphics_if_needed  
self._create_ribbon_graphics()  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/structure.py", line 551, in _create_ribbon_graphics  
ribbons_drawing.compute_ribbons(self)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/ribbon.py", line 543, in compute_ribbons  
_make_ribbon_graphics(structure, self)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/ribbon.py", line 109, in _make_ribbon_graphics  
xsection = xs_mgr.xs_helix_tube  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/ribbon.py", line 1964, in xs_helix_tube  
self._xs_helix_tube = self._make_xs(self.STYLE_ROUND, scale)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/ribbon.py", line 1999, in _make_xs  
return _xsection_round(scale, param['sides'], param['faceted'])  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/ribbon.py", line 2126, in _xsection_round  
coords = circle * array(scale)  
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'  
  
Error processing trigger "graphics update":  
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'  
  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/atomic/ribbon.py", line 2126, in _xsection_round  
coords = circle * array(scale)  
  
See log for complete Python traceback.  
  
draw time 0.1395 seconds  




OpenGL version: 4.1 ATI-3.5.5
OpenGL renderer: AMD Radeon Pro Vega 20 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by Tom Goddard, 6 years ago

Component: UnassignedDepiction
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionCartoon tube helix error

comment:2 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Helix tube radius was uninitialized. Set initial value to 2.0.

Note: See TracTickets for help on using tickets.