File indexing completed on 2026-04-09 07:48:51
0001
0002 """
0003 ::
0004
0005 OKTest --save
0006
0007 OEvent=INFO OKTest --save --compute --dumphit --dumphiy
0008
0009 OEvent=INFO OKTest --save --dumphit --dumphiy ##
0010
0011 OEvent=INFO lldb_ -- OKTest --save --dumphit --dumphiy
0012
0013 ipython -i ~/opticks/ana/way_buffer.py
0014
0015 ipython > run ~/opticks/ana/way_buffer.py
0016
0017 ::
0018
0019 ox_path : /tmp/blyth/opticks/OKTest/evt/g4live/torch/1/ox.npy ox.shape (10000, 4, 4)
0020 wy_path : /tmp/blyth/opticks/OKTest/evt/g4live/torch/1/wy.npy wy.shape (10000, 2, 4)
0021 ht_path : /tmp/blyth/opticks/OKTest/evt/g4live/torch/1/ht.npy ht.shape (87, 4, 4)
0022 hy_path : /tmp/blyth/opticks/OKTest/evt/g4live/torch/1/hy.npy hy.shape (87, 2, 4)
0023
0024
0025 """
0026 import os, numpy as np
0027 np.set_printoptions(suppress=True)
0028
0029 tst = "OKTest"
0030
0031 os.environ.setdefault("OPTICKS_EVENT_BASE",os.path.expandvars("/tmp/$USER/opticks"))
0032 path_ = lambda _:os.path.expandvars("$OPTICKS_EVENT_BASE/%s/evt/g4live/torch/1/%s.npy" % (tst,_))
0033
0034 wy_path = path_("wy")
0035 ox_path = path_("ox")
0036 ht_path = path_("ht")
0037 hy_path = path_("hy")
0038
0039 wy = np.load(wy_path)
0040 ox = np.load(ox_path)
0041 ht = np.load(ht_path)
0042 hy = np.load(hy_path)
0043
0044 print("ox_path : %s ox.shape %r " % (ox_path,ox.shape) )
0045 print("wy_path : %s wy.shape %r " % (wy_path,wy.shape) )
0046 print("ht_path : %s ht.shape %r " % (ht_path,ht.shape) )
0047 print("hy_path : %s hy.shape %r " % (hy_path,hy.shape) )
0048
0049
0050