Opened 8 years ago
Closed 8 years ago
#920 closed defect (fixed)
coloring volume surf gives TypeError unsupported operand type(s) for +=: 'NoneType' and 'int'
Reported by: | Elaine Meng | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Volume Data | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description (last modified by )
Coloring an isosurfaces gives error:
color #2 purple
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/cmd_line/tool.py", line 201, in execute
cmd.run(cmd_text)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2550, in run
result = ci.function(session, kw_args)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/chimerax/core/commands/color.py", line 159, in color
ns += len(mlist)
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'int'
Attachments (1)
Change History (4)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|---|
Summary: | recoloring surf after bumps-coloring gives TypeError unsupported operand type(s) for +=: 'NoneType' and 'int' → coloring volume surf gives TypeError unsupported operand type(s) for +=: 'NoneType' and 'int' |
by , 8 years ago
Attachment: | amino-coloring.cxc added |
---|
comment:2 by , 8 years ago
Actually coloring molscular surface can have this problem. Haven't figured out the prerequisites but opening the attached coloring command file seems to do it reliably.
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed.
I fixed this yesterday but forgot to git push the changes. The bug was introduced when I changed molecular surfaces to remember atom colors 2 days ago.
At first I blamed previous bump-coloring but now I see that simply opening a volume and then changing its color causes the error. Coloring molecular surface does not have this problem.