lidar_correction_ghk.py

changeset 14
82dba9904149
parent 13
f08818615e3a
child 16
313ac320b970
equal deleted inserted replaced
13:f08818615e3a 14:82dba9904149
1803 plt.show() 1803 plt.show()
1804 plt.close 1804 plt.close
1805 1805
1806 # --- Save LDRmin, LDRmax to file 1806 # --- Save LDRmin, LDRmax to file
1807 # http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python 1807 # http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python
1808 with open('LDR_min_max_' + LID + '.dat', 'w') as f: 1808 with open('output_files\LDR_min_max_' + LID + '.dat', 'w') as f:
1809 with redirect_stdout(f): 1809 with redirect_stdout(f):
1810 print(LID) 1810 print(LID)
1811 print("LDRtrue, LDRmin, LDRmax") 1811 print("LDRtrue, LDRmin, LDRmax")
1812 for i in range(len(LDRrange)): 1812 for i in range(len(LDRrange)):
1813 print("{0:7.4f},{1:7.4f},{2:7.4f}".format(LDRrange[i], LDRmin[i], LDRmax[i])) 1813 print("{0:7.4f},{1:7.4f},{2:7.4f}".format(LDRrange[i], LDRmin[i], LDRmax[i]))

mercurial