16
16
17
17
# =============================================================================
18
18
class ResidualPhaseTensor :
19
- """
20
- PhaseTensor class - generates a Phase Tensor (PT) object DeltaPhi
19
+ """PhaseTensor class - generates a Phase Tensor (PT) object DeltaPhi
21
20
DeltaPhi = 1 - Phi1^-1*Phi2
22
21
"""
23
22
24
23
def __init__ (
25
24
self , pt_object1 = None , pt_object2 = None , residual_type = "heise"
26
25
):
27
- """
28
- Initialise an instance of the ResidualPhaseTensor class.
26
+ """Initialise an instance of the ResidualPhaseTensor class.
27
+
29
28
Optional input:
30
29
pt_object1 : instance of the PhaseTensor class
31
30
pt_object2 : instance of the PhaseTensor class
@@ -63,8 +62,8 @@ def __init__(
63
62
self .compute_residual_pt ()
64
63
65
64
def compute_residual_pt (self ):
66
- """
67
- Read in two instance of the MTpy PhaseTensor class.
65
+ """Read in two instance of the MTpy PhaseTensor class.
66
+
68
67
Update attributes:
69
68
rpt, rpt_error, _self.pt1, _self.pt2, _self.pt1_error, _self.pt2_error
70
69
"""
@@ -259,13 +258,12 @@ def compute_residual_pt(self):
259
258
)
260
259
261
260
def read_pts (self , pt1 , pt2 , pt1_error = None , pt2error = None ):
262
- """
263
- Read two PT arrays and calculate the ResPT array (incl. uncertainties).
261
+ """Read two PT arrays and calculate the ResPT array (incl. uncertainties).
262
+
264
263
Input:
265
264
- 2x PT array
266
265
Optional:
267
266
- 2x pt_erroror array
268
-
269
267
"""
270
268
271
269
try :
@@ -284,8 +282,8 @@ def read_pts(self, pt1, pt2, pt1_error=None, pt2error=None):
284
282
self .compute_residual_pt (pt_o1 , pt_o2 )
285
283
286
284
def set_rpt (self , rpt_array ):
287
- """
288
- Set the attribute 'rpt' (ResidualPhaseTensor array).
285
+ """Set the attribute 'rpt' (ResidualPhaseTensor array).
286
+
289
287
Input:
290
288
ResPT array
291
289
Test for shape, but no test for consistency!
@@ -307,8 +305,8 @@ def set_rpt(self, rpt_array):
307
305
)
308
306
309
307
def set_rpt_error (self , rpt_error_array ):
310
- """
311
- Set the attribute 'rpt_error' (ResidualPhaseTensor-erroror array).
308
+ """Set the attribute 'rpt_error' (ResidualPhaseTensor-erroror array).
309
+
312
310
Input:
313
311
ResPT-erroror array
314
312
Test for shape, but no test for consistency!
0 commit comments