Skip to content

Commit 5d03f18

Browse files
committed
updating docsrings to sphinx format
1 parent 918a58b commit 5d03f18

File tree

88 files changed

+4720
-6659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+4720
-6659
lines changed

mtpy/analysis/residual_phase_tensor.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@
1616

1717
# =============================================================================
1818
class ResidualPhaseTensor:
19-
"""
20-
PhaseTensor class - generates a Phase Tensor (PT) object DeltaPhi
19+
"""PhaseTensor class - generates a Phase Tensor (PT) object DeltaPhi
2120
DeltaPhi = 1 - Phi1^-1*Phi2
2221
"""
2322

2423
def __init__(
2524
self, pt_object1=None, pt_object2=None, residual_type="heise"
2625
):
27-
"""
28-
Initialise an instance of the ResidualPhaseTensor class.
26+
"""Initialise an instance of the ResidualPhaseTensor class.
27+
2928
Optional input:
3029
pt_object1 : instance of the PhaseTensor class
3130
pt_object2 : instance of the PhaseTensor class
@@ -63,8 +62,8 @@ def __init__(
6362
self.compute_residual_pt()
6463

6564
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+
6867
Update attributes:
6968
rpt, rpt_error, _self.pt1, _self.pt2, _self.pt1_error, _self.pt2_error
7069
"""
@@ -259,13 +258,12 @@ def compute_residual_pt(self):
259258
)
260259

261260
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+
264263
Input:
265264
- 2x PT array
266265
Optional:
267266
- 2x pt_erroror array
268-
269267
"""
270268

271269
try:
@@ -284,8 +282,8 @@ def read_pts(self, pt1, pt2, pt1_error=None, pt2error=None):
284282
self.compute_residual_pt(pt_o1, pt_o2)
285283

286284
def set_rpt(self, rpt_array):
287-
"""
288-
Set the attribute 'rpt' (ResidualPhaseTensor array).
285+
"""Set the attribute 'rpt' (ResidualPhaseTensor array).
286+
289287
Input:
290288
ResPT array
291289
Test for shape, but no test for consistency!
@@ -307,8 +305,8 @@ def set_rpt(self, rpt_array):
307305
)
308306

309307
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+
312310
Input:
313311
ResPT-erroror array
314312
Test for shape, but no test for consistency!

0 commit comments

Comments
 (0)