Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/usr/bin/env python
0002 
0003 import numpy as np
0004 SIZE = np.array([1280, 720])
0005 import matplotlib.pyplot as mp
0006 
0007 
0008 def test_transformQuick():
0009     a = np.load(os.path.expandvars("$FOLD/test_transformQuick.npy"))
0010     fig, ax = mp.subplots(figsize=SIZE/100.)
0011     ax.scatter( a[:,0], a[:,1], s=0.1 )
0012     fig.show() 
0013     return a 
0014 
0015 
0016 def test_transformQuick_vs_njuffa_erfcinvf():
0017     a = np.load(os.path.expandvars("$FOLD/test_transformQuick_vs_njuffa_erfcinvf.npy"))
0018     fig, ax = mp.subplots(figsize=SIZE/100.)
0019     ax.scatter( a[:,0], a[:,1], s=0.1, label="transformQuick" )
0020     ax.scatter( a[:,0], a[:,2], s=0.1, label="njuffa_erfcinvf" )
0021     ax.legend()
0022     fig.show() 
0023     return a
0024 
0025 
0026 def test_shoot():
0027     a = np.load(os.path.expandvars("$FOLD/test_shoot.npy"))
0028     fig, ax = mp.subplots(figsize=SIZE/100.)
0029     ax.hist(a, bins=100)
0030     fig.show() 
0031     return a
0032 
0033 
0034 
0035 if __name__ == '__main__':
0036     #a = test_shoot()
0037     a = test_transformQuick_vs_njuffa_erfcinvf()
0038 
0039 pass