Opened 6 years ago

Closed 6 years ago

#2763 closed defect (fixed)

Setting clip_cap property: 'Drawing' object has no attribute 'session'

Reported by: Tristan Croll Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

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

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionSetting clip_cap property: 'Drawing' object has no attribute 'session'

comment:2 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Clip caps used to work on a Drawing that is not a Model, but some code change broke that. Apparently all clipped Drawings currently in use are Models. But I've fixed it so Drawings can have clip caps.

Note: See TracTickets for help on using tickets.