Opened 6 years ago

Closed 6 years ago

#2233 closed defect (fixed)

info chain: 'Atoms' object has no attribute 'unique_chains'

Reported by: Greg Couch Owned by: pett
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:        Windows-10-10.0.18362
ChimeraX Version: 0.91 (2019-07-16)
Description
traceback occurs with "info selection level chain"

Log:
UCSF ChimeraX version: 0.91 (2019-07-16)  
© 2016-2019 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  
  
  

> toolshed show sh

> info

1 models  
#1, 1gcn, shown  
246 atoms, 252 bonds, 29 residues, 1 chains (A)  

Expected a models specifier or a keyword  

> usage info

info [models]  
— Report info about models  
Subcommands are:

  * info atomattr
  * info atoms
  * info bondattr
  * info bounds
  * info chains
  * info distmat
  * info models
  * info notify resume
  * info notify start
  * info notify stop
  * info notify suspend
  * info path
  * info polymers
  * info resattr
  * info residues
  * info selection

  

> info selection

atom id /A:14@N idatm_type Npl  
atom id /A:14@CA idatm_type C3  
atom id /A:14@C idatm_type C2  
atom id /A:14@O idatm_type O2  
atom id /A:14@CB idatm_type C3  
atom id /A:14@CG idatm_type C3  
atom id /A:14@CD1 idatm_type C3  
atom id /A:14@CD2 idatm_type C3  
atom id /A:15@N idatm_type Npl  
atom id /A:15@CA idatm_type C3  
atom id /A:15@C idatm_type C2  
atom id /A:15@O idatm_type O2  
atom id /A:15@CB idatm_type C3  
atom id /A:15@CG idatm_type Cac  
atom id /A:15@OD1 idatm_type O2-  
atom id /A:15@OD2 idatm_type O2-  
atom id /A:16@N idatm_type Npl  
atom id /A:16@CA idatm_type C3  
atom id /A:16@C idatm_type C2  
atom id /A:16@O idatm_type O2  
atom id /A:16@CB idatm_type C3  
atom id /A:16@OG idatm_type O3  
atom id /A:17@N idatm_type Npl  
atom id /A:17@CA idatm_type C3  
atom id /A:17@C idatm_type C2  
atom id /A:17@O idatm_type O2  
atom id /A:17@CB idatm_type C3  
atom id /A:17@CG idatm_type C3  
atom id /A:17@CD idatm_type C3  
atom id /A:17@NE idatm_type Ng+  
atom id /A:17@CZ idatm_type C2  
atom id /A:17@NH1 idatm_type Ng+  
atom id /A:17@NH2 idatm_type Ng+  
atom id /A:18@N idatm_type Npl  
atom id /A:18@CA idatm_type C3  
atom id /A:18@C idatm_type C2  
atom id /A:18@O idatm_type O2  
atom id /A:18@CB idatm_type C3  
atom id /A:18@CG idatm_type C3  
atom id /A:18@CD idatm_type C3  
atom id /A:18@NE idatm_type Ng+  
atom id /A:18@CZ idatm_type C2  
atom id /A:18@NH1 idatm_type Ng+  
atom id /A:18@NH2 idatm_type Ng+  

> usage info sel

info selection [level level] [attribute a text string]  
— Report selection information  
level: one of atom, chain, model, residue, or structure  

Expected a keyword  

> info selection level chain

Traceback (most recent call last):  
File "C:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\cmd_line\tool.py", line 254, in execute  
cmd.run(cmd_text)  
File "C:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\core\commands\cli.py", line 2646, in run  
result = ci.function(session, **kw_args)  
File "C:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\list_info\cmd.py", line 171, in info_selection  
chains = concatenate([a.unique_chains for a in atoms])  
File "C:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\list_info\cmd.py", line 171, in <listcomp>  
chains = concatenate([a.unique_chains for a in atoms])  
AttributeError: 'Atoms' object has no attribute 'unique_chains'  
  
AttributeError: 'Atoms' object has no attribute 'unique_chains'  
  
File "C:\cygwin64\home\gregc\src\chimerax\ChimeraX.app\bin\lib\site-
packages\chimerax\list_info\cmd.py", line 171, in  
chains = concatenate([a.unique_chains for a in atoms])  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 430.64
OpenGL renderer: GeForce GTX 970/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedStructure Analysis
Owner: set to pett
Platform: all
Project: ChimeraX
Status: newaccepted
Summary: ChimeraX bug report submissioninfo chain: 'Atoms' object has no attribute 'unique_chains'

comment:2 by pett, 6 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.