Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #!/usr/bin/env python
0002 """
0003 QScintTest.py
0004 ================
0005 
0006 ::
0007  
0008    ipython -i tests/QScintTest.py
0009  
0010 
0011 """
0012 import os 
0013 import numpy as np
0014 fold="$TMP/QScintTest"
0015 load_ = lambda name:np.load(os.path.expandvars("%s/%s" % (fold,name)))
0016 
0017 if __name__ == '__main__':
0018     src = load_("src.npy")
0019     dst = load_("dst.npy")
0020 
0021     s = src
0022     d = dst.reshape(src.shape)
0023     assert np.allclose( s, d )
0024 
0025     ss = src.reshape(dst.shape)
0026     dd = dst
0027     assert np.allclose( ss, dd )
0028 
0029