File indexing completed on 2026-04-09 07:49:20
0001
0002
0003 import os, textwrap, numpy as np
0004
0005 if __name__ == '__main__':
0006 a = np.load(os.environ["SQUADX_TEST_PATH"])
0007
0008
0009 EXPRS = r"""
0010
0011 a
0012
0013 # comment
0014
0015 a.view(np.uint64)
0016
0017 a.view(np.uint64) #hex
0018
0019 a.view(np.uint64)
0020
0021 a.view("datetime64[us]")
0022
0023 """
0024
0025 for e in textwrap.dedent(EXPRS).split("\n"):
0026 print(e)
0027 if len(e) == 0 or e[0] == "#": continue
0028 ifmt = hex if "#hex" in e else None
0029 np.set_printoptions(formatter={'int':ifmt})
0030 print(eval(e))
0031 pass
0032
0033