From 99df9ca1d5572513918bcd589057044392457516 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Bayle <j2b.bayle@gmail.com>
Date: Tue, 13 Dec 2022 15:56:47 +0100
Subject: [PATCH] Rename `inverse_the_wrt_tps` to `tps_wrt_the`

---
 lisainstrument/instrument.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py
index 3f6f02c..c47999d 100755
--- a/lisainstrument/instrument.py
+++ b/lisainstrument/instrument.py
@@ -1222,12 +1222,12 @@ class Instrument:
 
         ## Sampling beatnotes, DWS measurements, and measured pseudo-ranges to THE grid
 
-        logger.info("Inverting THEs with respect to TPS")
-        self.inverse_the_wrt_tps = self.the_wrt_tps_local \
+        logger.info("Inverting THE with respect to TPS")
+        self.tps_wrt_the = self.the_wrt_tps_local \
             .transformed(lambda sc, x: self.invert_the_wrt_tps(x, sc))
 
         self.timestamped = \
-            lambda mosa, x: self.interpolate(x, -self.inverse_the_wrt_tps.for_each_mosa()[mosa])
+            lambda mosa, x: self.interpolate(x, -self.tps_wrt_the.for_each_mosa()[mosa])
 
         logger.info("Sampling inter-spacecraft beatnotes to THE grid")
 
@@ -2027,8 +2027,8 @@ class Instrument:
                 self.tps_rfi_usb_offsets.write(hdf5, 'tps_rfi_usb_offsets')
                 self.tps_rfi_usb_fluctuations.write(hdf5, 'tps_rfi_usb_fluctuations')
 
-                logger.debug("Writing inverted THE with respect to TPS to '%s'", output)
-                self.inverse_the_wrt_tps.write(hdf5, 'inverse_the_wrt_tps')
+                logger.debug("Writing TPS with respect to THE to '%s'", output)
+                self.tps_wrt_the.write(hdf5, 'tps_wrt_the')
 
                 logger.debug("Writing inter-spacecraft beatnotes sampled to THE grid to '%s'", output)
                 self.the_isi_carrier_offsets.write(hdf5, 'the_isi_carrier_offsets')
-- 
GitLab