﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
2763	Setting clip_cap property: 'Drawing' object has no attribute 'session'	Tristan Croll	Tom Goddard	"{{{
The following bug report has been submitted:
Platform:        Linux-3.10.0-1062.9.1.el7.x86_64-x86_64-with-centos-7.7.1908-Core
ChimeraX Version: 0.92 (2020-01-11)
Description
Experimenting with the `clip_cap` property. Seems this only works for subclasses of `Model`?

Log:
Startup Messages  
---  
warning | 'clip' is a prefix of an existing command 'clipper'  
  
UCSF ChimeraX version: 0.92 (2020-01-11)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 3io0 format mmCIF fromDatabase pdb structureFactors true

Summary of feedback from opening 3io0 fetched from pdb  
---  
warning | WARNING: multiple experimental reflection datasets found:  
F_meas_au, F_meas_sigma_au,  
pdbx_F_plus, pdbx_F_plus_sigma, pdbx_F_minus, pdbx_F_minus_sigma,  
pdbx_anom_difference, pdbx_anom_difference_sigma,  
intensity_meas, intensity_sigma,  
pdbx_I_plus, pdbx_I_plus_sigma, pdbx_I_minus, pdbx_I_minus_sigma  
Automatically choosing ""intensity_meas, intensity_sigma"".  
notes | Resolution: 3.003  
Reflection data provided as intensities. Performing French & Wilson scaling to
convert to amplitudes...  
  
3io0 title:  
Crystal structure of EtuB from Clostridium kluyveri [more info...]  
  
Chain information for 3io0  
---  
Chain | Description  
1.1/A | EtuB protein  
  
3io0 mmCIF Assemblies  
---  
1| author_and_software_defined_assembly  
  
  

> toolshed show Shell

/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/IPython/core/history.py:226: UserWarning: IPython History requires
SQLite, your history will not be saved  
warn(""IPython History requires SQLite, your history will not be saved"")  
Traceback (most recent call last):  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/core/updateloop.py"", line 133, in _redraw_timer_callback  
drew = self.draw_new_frame()  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/core/updateloop.py"", line 62, in draw_new_frame  
surface.update_clip_caps(view)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 27, in update_clip_caps  
subdivision = settings.clipping_cap_subdivision)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 43, in show_surface_clip_caps  
set_cap_drawing_geometry(d, p.name, varray, narray, tarray)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 172, in set_cap_drawing_geometry  
cm = new_cap(d.session, d, cap_name)  
AttributeError: 'Drawing' object has no attribute 'session'  
  
AttributeError: 'Drawing' object has no attribute 'session'  
  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 172, in set_cap_drawing_geometry  
cm = new_cap(d.session, d, cap_name)  
  
See log for complete Python traceback.  
  
Traceback (most recent call last):  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/core/updateloop.py"", line 133, in _redraw_timer_callback  
drew = self.draw_new_frame()  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/core/updateloop.py"", line 62, in draw_new_frame  
surface.update_clip_caps(view)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 27, in update_clip_caps  
subdivision = settings.clipping_cap_subdivision)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 43, in show_surface_clip_caps  
set_cap_drawing_geometry(d, p.name, varray, narray, tarray)  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 172, in set_cap_drawing_geometry  
cm = new_cap(d.session, d, cap_name)  
AttributeError: 'Drawing' object has no attribute 'session'  
  
AttributeError: 'Drawing' object has no attribute 'session'  
  
File ""/opt/UCSF/ChimeraX-daily/lib/python3.7/site-
packages/chimerax/surface/cap.py"", line 172, in set_cap_drawing_geometry  
cm = new_cap(d.session, d, cap_name)  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 440.33.01
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

}}}
"	defect	closed	normal		Graphics		fixed						all	ChimeraX
