File indexing completed on 2026-04-09 07:48:51
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 """
0022
0023 ::
0024
0025 ip tprofile.py
0026
0027 ::
0028
0029 ip ()
0030 {
0031 local py=${1:-dummy.py};
0032 shift;
0033 ipython --pdb $(which $py) -i $*
0034 }
0035
0036
0037 """
0038 from __future__ import print_function
0039 import os, sys, logging, numpy as np
0040 log = logging.getLogger(__name__)
0041
0042 import matplotlib.pyplot as plt
0043 from opticks.ana.main import opticks_main
0044 from opticks.ana.profile_ import Profile
0045
0046 if __name__ == '__main__':
0047 ok = opticks_main(doc=__doc__)
0048 log.info(ok.brief)
0049
0050 op = Profile(ok)
0051 op.deltaVM()
0052
0053 a = op.a
0054 l = op.l
0055
0056 plt.plot( op.t, op.v, 'o' )
0057 plt.ion()
0058 plt.show()
0059
0060 print(op)
0061
0062