updated tap notes
[wikirepo] / notes / a_40-ish_dB_tap / process.py
index f4fa8d1..cd5bc77 100644 (file)
@@ -5,8 +5,8 @@ import matplotlib
 
 if __name__ == "__main__":
     data = pandas.read_csv('data.csv', skipinitialspace=True)
-    data['loss S1S2 [dBm]'] = data['SRC [dBm]'] - data['S1S2 [dBm]']
-    data['loss S2S3 [dBm]'] = data['SRC [dBm]'] - data['S1S3 [dBm]']
-    data['loss S2S3 [dBm]'] = data['SRC [dBm]'] - data['S2S3 [dBm]']
+    data['loss S1S2 [dB]'] = data['SRC [dBm]'] - data['S1S2 [dBm]']
+    data['loss S2S3 [dB]'] = data['SRC [dBm]'] - data['S1S3 [dBm]']
+    data['loss S2S3 [dB]'] = data['SRC [dBm]'] - data['S2S3 [dBm]']
     
     print(data.to_html())