comparison rs_fsp7_noisetest.py @ 48:386e1cb04799

Fix comment
author Daniel O'Connor <darius@dons.net.au>
date Thu, 31 Jan 2013 11:32:06 +1030
parents fa728cf34f50
children 22187590594b
comparison
equal deleted inserted replaced
47:fa728cf34f50 48:386e1cb04799
104 else: 104 else:
105 val = "OFF" 105 val = "OFF"
106 r.write("DIAG:SERV:NSO " + val) 106 r.write("DIAG:SERV:NSO " + val)
107 107
108 def calcnf(enrdb, offdb, ondb): 108 def calcnf(enrdb, offdb, ondb):
109 # Not possible but weak results may give it 109 # Not possible but noisy results may result in it happening
110 if ondb <= offdb: 110 if ondb <= offdb:
111 return 0 111 return 0
112 ydb = ondb - offdb 112 ydb = ondb - offdb
113 y = 10 ** (ydb / 10) 113 y = 10 ** (ydb / 10)
114 enr = 10 ** (enrdb / 10) 114 enr = 10 ** (enrdb / 10)