Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:49:32

0001 #!/usr/bin/env python
0002 """
0003 opticks_CSGOptiX_test.py
0004 =========================
0005 
0006 ::
0007 
0008    ~/o/CSGOptiX/tests/opticks_CSGOptiX_test.py
0009 
0010 
0011 """
0012 import functools, operator, numpy as np
0013 import opticks_CSGOptiX as cx
0014 
0015 def test_CSGOptiXService_ctor():
0016     print("[test_CSGOptiXService_ctor")
0017     svc = cx._CSGOptiXService()
0018     print("repr(svc):[%s]" % repr(svc))
0019     print("]test_CSGOptiXService_ctor")
0020 
0021 
0022 def main():
0023     test_CSGOptiXService_ctor()
0024 pass
0025 
0026 if __name__ == '__main__':
0027     #main()
0028     svc = cx._CSGOptiXService()
0029 
0030     gs = np.arange(10*6*4, dtype=np.float32).reshape(10,6,4)
0031     ht = svc.simulate(gs)
0032 
0033     print("gs\n",gs)
0034     print("ht\n",ht)
0035 pass
0036