Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 08:39:01

0001 import math
0002 import os
0003 import sys
0004 
0005 
0006 # run
0007 def main(tbuf=None, **kwargs):
0008     print("Dummy test of PanDA daemon ---- START")
0009 
0010     res = math.cos(math.pi / 3)
0011     print(f"cos(pi/3) = {res}")
0012 
0013     print(f"uid={os.getuid()} , pid={os.getpid()}")
0014 
0015     if tbuf is not None:
0016         print("I got panda taskBuffer from daemon!!")
0017     else:
0018         print("I did not get panda taskBuffer from daemon...")
0019 
0020     print("Dummy test of PanDA daemon ---- END")
0021 
0022 
0023 # run
0024 if __name__ == "__main__":
0025     main()