File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1379,6 +1379,33 @@ def format_data(filepath, datas):
13791379 )
13801380 file .close ()
13811381
1382+ with open (save_dir + os .sep + "time_table.txt" , "w" ) as file :
1383+ heading = ""
1384+ for pulse in self ._bnc :
1385+ heading += "{: ^16s}" .format (
1386+ "{} : {}" .format (str (pulse ), pulse [BNC .LABEL ].get ())
1387+ )
1388+ file .writeline (heading + "\n " )
1389+ for i in range (len (self [folder_id , :, :])):
1390+ tp_line = ""
1391+ for pulse in self ._bnc :
1392+ if pulse .experimentTuple [BNC .PHASE_BASE ].get () == "1" :
1393+ tp_line += " {:=+012.5F}" .format (
1394+ float (pulse .experimentTuple [BNC .DELAY ].get ())
1395+ + i *
1396+ float (pulse .experimentTuple [BNC .dPHASE ].get ())
1397+ )
1398+ else :
1399+ tp_line += " {:=+012.5F}" .format (
1400+ float (pulse .experimentTuple [BNC .DELAY ].get ())
1401+ + (float (
1402+ pulse .experimentTuple [BNC .PHASE_BASE ].get ()
1403+ ) ** i ) *
1404+ float (pulse .experimentTuple [BNC .dPHASE ].get ())
1405+ )
1406+ file .write (tp_line + "\n " )
1407+ file .close ()
1408+
13821409 def goodbye_app (self ):
13831410 logger .info ("Exiting CALOA." )
13841411
You can’t perform that action at this time.
0 commit comments