#356 closed defect (fixed)
vop boxes causing later failure?
| 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
I'm not sure exactly how this problem is triggered. One time I got it with vop boxes and useMarkerSize true but later using that same set of options didn't cause it. I'd ignored the warning the first time and kept going, but as per the warning, later there was a volume surface still displayed after I'd closed (all) models and the Model Panel was empty. Here are the commands and resulting log messages culminating in the second occurrence of the problem after using vop boxes again. I indented the actual commands I entered:
open 1zik
molmap /a 6
vop boxes #2 centers /a:17@ca useMarkerSize true
box region ([18, 15, 14], [21, 18, 17], (1, 1, 1)) False
vop boxes #2 centers /a:17@ca size 5
box region ([18.0, 14, 14], [22.0, 18, 18], (1, 1, 1)) False
/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/map/data/griddata.py:236: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
m = matrix[k1:k2:kstep, j1:j2:jstep, i1:i2:istep]
... again I kept going but after using "volume" to change color and style, redraw was halted:
[... various other commands ...]
volume #3-5 style mesh
volume #3-5 style solid
Error in drawing scene. Redraw is now stopped.
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/updateloop.py", line 31, in draw_new_frame
view.draw(check_for_changes = False)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/view.py", line 179, in draw
draw_drawings(r, cpinv, mdraw)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 998, in draw_drawings
lambda: _draw_multiple(drawings, r, p, Drawing.TRANSPARENT_DRAW_PASS))
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/opengl.py", line 652, in draw_transparent
draw()
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 998, in <lambda>
lambda: _draw_multiple(drawings, r, p, Drawing.TRANSPARENT_DRAW_PASS))
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 1004, in _draw_multiple
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 533, in draw
self._draw_children(renderer, pp, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 566, in _draw_children
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 533, in draw
self._draw_children(renderer, pp, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/graphics/drawing.py", line 566, in _draw_children
d.draw(renderer, place, draw_pass, selected_only)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/map/grayscale.py", line 155, in draw
self.make_planes()
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/map/grayscale.py", line 192, in make_planes
plist = self.make_axis_planes()
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/chimerax/core/map/grayscale.py", line 197, in make_axis_planes
planes = tuple((k, axis) for k in range(0,self.grid_size[axis]))
TypeError: 'float' object cannot be interpreted as an integer
Change History (2)
comment:1 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 8 years ago
| Component: | Unassigned → Volume Data |
|---|
Fixed.
Grid size of a box around an atom came out floating point instead of integer because in Python 3 the divide operator "/" produces a float when operating on two integers. Need to use integer divide operator "".