GHK_0.9.8e5_Py3.7.py

changeset 44
d2c9785f0d61
parent 43
2a2da0993ade
equal deleted inserted replaced
43:2a2da0993ade 44:d2c9785f0d61
367 367
368 # --- alternative texts for output 368 # --- alternative texts for output
369 dY = ['perpendicular', '', 'parallel'] 369 dY = ['perpendicular', '', 'parallel']
370 dY2 = ['reflected', '', 'transmitted'] 370 dY2 = ['reflected', '', 'transmitted']
371 if ((abs(RotL) < 45 and Y == 1) or (abs(RotL) >= 45 and Y == -1)): 371 if ((abs(RotL) < 45 and Y == 1) or (abs(RotL) >= 45 and Y == -1)):
372 dY3 = "Parallel laser polarisation is detected in transmitted channel" 372 dY3 = "the parallel laser polarisation is detected in the transmitted channel."
373 else: 373 else:
374 dY3 = "Parallel laser polarisation is detected in reflected channel" 374 dY3 = "the parallel laser polarisation is detected in the reflected channel."
375 375
376 # --- check input errors 376 # --- check input errors
377 if ((Qin ** 2 + Vin ** 2) ** 0.5) > 1: 377 if ((Qin ** 2 + Vin ** 2) ** 0.5) > 1:
378 print("Error: degree of polarisation of laser > 1. Check Qin and Vin! ") 378 print("Error: degree of polarisation of laser > 1. Check Qin and Vin! ")
379 sys.exit() 379 sys.exit()
1043 "LDRCal during calibration in calibration range", LDRCal0, dLDRCal, nLDRCal)) 1043 "LDRCal during calibration in calibration range", LDRCal0, dLDRCal, nLDRCal))
1044 print("{0:12}".format(" --- Additional ND filter attenuation (transmission) during the calibration ---")) 1044 print("{0:12}".format(" --- Additional ND filter attenuation (transmission) during the calibration ---"))
1045 print("{0:12}{1:7.4f}±{2:7.4f}/{3:2d}, {4:7.4f}±{5:7.4f}/{6:2d}".format( 1045 print("{0:12}{1:7.4f}±{2:7.4f}/{3:2d}, {4:7.4f}±{5:7.4f}/{6:2d}".format(
1046 "TCalT,TCalR :", TCalT0, dTCalT, nTCalT, TCalR0, dTCalR, nTCalR)) 1046 "TCalT,TCalR :", TCalT0, dTCalT, nTCalT, TCalR0, dTCalR, nTCalR))
1047 print() 1047 print()
1048 print("Rotation Error Epsilon For Normal Measurements = ", RotationErrorEpsilonForNormalMeasurements) 1048 print(Type[TypeC],"calibrator is located", Loc[LocC])
1049 print(Type[TypeC], Loc[LocC]) 1049 print("Rotation error epsilon is considered also for normal measurements = ", RotationErrorEpsilonForNormalMeasurements)
1050 print("PBS incidence plane is ", dY[int(Y + 1)], "to reference plane and polarisation in reference plane is finally", dY2[int(Y + 1)]) 1050 print("The PBS incidence plane is ", dY[int(Y + 1)], "to the reference plane" )
1051 print(dY3) 1051 print("The laser polarisation in the reference plane is finally", dY2[int(Y + 1)], "=>", dY3)
1052 print("RS_RP_depend_on_TS_TP = ", RS_RP_depend_on_TS_TP) 1052 print("RS_RP_depend_on_TS_TP = ", RS_RP_depend_on_TS_TP)
1053 # end of print actual system parameters 1053 # end of print actual system parameters
1054 # ****************************************************************************** 1054 # ******************************************************************************
1055 1055
1056 1056

mercurial