Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:13

0001 #!/usr/bin/env python
0002 """
0003 
0004 
0005 """
0006 import os, numpy as np
0007 import matplotlib.pyplot as mp  
0008 SIZE = np.array([1280, 720])
0009 
0010 np.set_printoptions(precision=5)
0011 
0012 
0013 def load(path):
0014     if True and os.path.exists(path):
0015         print(path)
0016         a = np.load(path) 
0017     else:
0018         print("FAILED TO LOAD : %s " % path)
0019         a = None
0020     pass
0021     return a 
0022 
0023 
0024 
0025 if __name__ == '__main__':
0026 
0027 
0028     a = load("/tmp/erfcinvf_Test/erfcinvf_Test_cu.npy")
0029     b = load("/tmp/S4MTRandGaussQTest/a.npy")
0030 
0031     if not a is None and not b is None:
0032         ab = b[:,1] - a[:,2]
0033     else:
0034         ab = None
0035     pass 
0036 
0037     fig, ax = mp.subplots(figsize=SIZE/100.)
0038 
0039     if not a is None:
0040         ax.scatter( a[:,0], a[:,1], s=0.2, label="a" )
0041     pass
0042 
0043     if not b is None:
0044         ax.scatter( b[:,0], b[:,1], s=0.2, label="b" )
0045     pass
0046 
0047     ax.legend()
0048     fig.show()
0049 
0050 
0051