File indexing completed on 2026-04-09 07:49:13
0001
0002 """
0003
0004
0005 In [9]: np.set_printoptions(precision=10)
0006
0007 In [10]: c = epr("c = np.c_[a[sl],d23[sl],d24[sl]]", globals(), locals(), rprefix="\n" )
0008 c = np.c_[a[sl],d23[sl],d24[sl]] :
0009 [[ 0.999901 0.0000990082 0.0000990082 0.0000989627 0.0000990094 0.4553294275 -0.0120053301]
0010 [ 0.999902 0.0000979948 0.0000979948 0.0000979489 0.0000979957 0.4589674063 -0.0083673513]
0011 [ 0.999903 0.0000969815 0.0000969815 0.0000969352 0.0000969819 0.4626781447 -0.0046566129]
0012 [ 0.999904 0.0000960277 0.0000960277 0.0000959806 0.0000960273 0.4711182555 0.003783498 ]
0013 [ 0.999905 0.0000950143 0.0000950143 0.0000949678 0.0000950145 0.4652974894 -0.0020372681]
0014 [ 0.999906 0.0000940009 0.0000940009 0.0000939531 0.0000939998 0.4783942131 0.0110594556]
0015 [ 0.999907 0.0000929876 0.0000929876 0.0000929412 0.000092988 0.4633329809 -0.0040017767]
0016 [ 0.999908 0.0000920338 0.0000920338 0.0000919866 0.0000920334 0.4717730917 0.0044383341]
0017 [ 0.999909 0.0000910204 0.0000910204 0.0000909748 0.0000910215 0.456784619 -0.0105501385]
0018 [ 0.99991 0.0000900071 0.0000900071 0.0000899601 0.0000900068 0.4698085831 0.0024738256]
0019 [ 0.999911 0.0000889937 0.0000889937 0.0000889463 0.0000889931 0.4735193215 0.006184564 ]
0020
0021
0022 """
0023 import os, numpy as np
0024 from opticks.ana.eprint import *
0025
0026 if __name__ == '__main__':
0027 path = os.path.expandvars("$FOLD/dev_scan.npy")
0028 print(path)
0029
0030 a = np.load(path)
0031 print(a)
0032
0033 d23 = (a[:,2] - a[:,3])*1e7
0034 d24 = (a[:,2] - a[:,4])*1e7
0035
0036 sl = slice(-200, -100, None)
0037
0038 np.set_printoptions(precision=10)
0039
0040 c = epr("c = np.c_[a[sl],d23[sl],d24[sl]]", globals(), locals(), rprefix="\n" )
0041
0042