Opened 7 years ago

Closed 7 years ago

#1265 closed defect (fixed)

Color command: min() arg is an empty sequence

Reported by: chimerax-bug-report@… 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-17.6.0-x86_64-i386-64bit
ChimeraX Version: 0.7 (2018-08-07)
Description
(Describe the actions that caused this problem to occur here)

Log:
UCSF ChimeraX version: 0.7 (2018-08-07)  
OpenGL version: 4.1 INTEL-10.34.27  
OpenGL renderer: Intel(R) Iris(TM) Plus Graphics 640  
OpenGL vendor: Intel Inc.  
How to cite UCSF ChimeraX  

open /Users/phakawatchusuth/Documents/pentameric/Chicken/ace_w.pdb

Opened PDB data containing 21758 atoms and 22072 bonds  
Chain information for ace_w.pdb #1  
---  
Chain | Description  
| No description available  
  

lighting simple

lighting simple

lighting soft

lighting full

lighting flat

lighting full

set silhouettes false

lighting flat

set silhouettes false

view cofr false

lighting full

lighting full

hide selAtoms

show selAtoms surfaces

close session

open /Users/phakawatchusuth/Downloads/Nina/Hbond/SARS2_md100-2.pdb

Opened PDB data containing 6531 atoms and 6540 bonds  
Chain information for SARS2_md100-2.pdb #1  
---  
Chain | Description  
| No description available  
  

hide selAtoms

show selAtoms surfaces

rangecolor bfactor key 1.0 red 0.8 gray 0.4 yellow 0.0 blue

Unknown command: rangecolor bfactor key 1.0 red 0.8 gray 0.4 yellow 0.0 blue  

lighting soft

color bfactor key 1.0 red 0.8 gray 0.4 yellow 0.0 blue

Expected a collection of one of 'atoms', 'cartoons', 'ribbons', or 'surfaces'
or a keyword  

color bfactor /A palette rainbow

Traceback (most recent call last):  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/cmd_line/tool.py", line 205, in execute  
    cmd.run(cmd_text)  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2561, in run  
    result = ci.function(session, **kw_args)  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/std_commands/color.py", line 956, in color_bfactor  
    acolors = _value_colors(palette, range, abf)  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/std_commands/color.py", line 1010, in _value_colors  
    r = (min(values), max(values)) if _use_full_range(range, palette) else
range  
ValueError: min() arg is an empty sequence  
  

ValueError: min() arg is an empty sequence  
  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/std_commands/color.py", line 1010, in _value_colors  
r = (min(values), max(values)) if _use_full_range(range, palette) else range  
  
See log for complete Python traceback.  
  
If you wish to report this error, send mail to chimerax-bugs@cgl.ucsf.edu and
describe what you were doing and include a copy of the contents of the log.
Don't include any data you wish to remain private since a publicly viewable
bug report will be created.  

color bfactor atoms palette rainbow

6531 atoms, bfactor range 0 to 1  

color bfactor

6531 atoms, 426 residues, 1 surfaces, bfactor range 0 to 1  

color bfactor rainbow

Expected a collection of one of 'atoms', 'cartoons', 'ribbons', or 'surfaces'
or a keyword  

color bfactor surfaces rainbow

Expected ',' or a keyword  

color bfactor surfaces rainbow

Expected ',' or a keyword  

color bfactor rainbow 'surfaces'

Expected a collection of one of 'atoms', 'cartoons', 'ribbons', or 'surfaces'
or a keyword  

color bfactor #1 rainbow

Expected a collection of one of 'atoms', 'cartoons', 'ribbons', or 'surfaces'
or a keyword  

color bfactor /A palette rainbow

Traceback (most recent call last):  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/cmd_line/tool.py", line 205, in execute  
    cmd.run(cmd_text)  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/core/commands/cli.py", line 2561, in run  
    result = ci.function(session, **kw_args)  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/std_commands/color.py", line 956, in color_bfactor  
    acolors = _value_colors(palette, range, abf)  
  File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/std_commands/color.py", line 1010, in _value_colors  
    r = (min(values), max(values)) if _use_full_range(range, palette) else
range  
ValueError: min() arg is an empty sequence  
  

ValueError: min() arg is an empty sequence  
  
File
"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/chimerax/std_commands/color.py", line 1010, in _value_colors  
r = (min(values), max(values)) if _use_full_range(range, palette) else range  
  
See log for complete Python traceback.  
  
If you wish to report this error, send mail to chimerax-bugs@cgl.ucsf.edu and
describe what you were doing and include a copy of the contents of the log.
Don't include any data you wish to remain private since a publicly viewable
bug report will be created.  




OpenGL version: 4.1 INTEL-10.34.27
OpenGL renderer: Intel(R) Iris(TM) Plus Graphics 640
OpenGL vendor: Intel Inc.

Change History (2)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedDepiction
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionColor command: min() arg is an empty sequence

comment:2 by Tom Goddard, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Color by bfactor command with no atoms raised this error.

Note: See TracTickets for help on using tickets.