Ticket #5964: test_mesh.py

File test_mesh.py, 464 bytes (added by Tom Goddard, 4 years ago)

Benchmark mesh edges by rendering map at various levels.

Line 
1# Benchmark changes in mesh edge calculation.
2# Have to hide file history before running this script or no rendering done.
3from chimerax.core.commands import run
4from numpy import arange, concatenate
5run(session, 'open 12873 from emdb')
6run(session, 'light simple')
7run(session, 'volume #1 step 1 style mesh level .01')
8for level in concatenate((arange(.01,.03,.001), arange(.03,.01,-.001))):
9 run(session, 'volume #1 level %.3f ; wait 1' % level, log = False)