ararpy 0.1.1__py3-none-any.whl → 0.1.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ararpy/calc/arr.py +2 -0
- ararpy/calc/corr.py +12 -0
- ararpy/calc/isochron.py +4 -2
- ararpy/examples/WHA.pdf +2863 -0
- ararpy/smp/__init__.py +1 -1
- ararpy/smp/basic.py +3 -2
- ararpy/smp/calculation.py +4 -0
- ararpy/smp/corr.py +26 -0
- ararpy/smp/diffusion_funcs.py +67 -43
- ararpy/smp/export.py +46 -0
- ararpy/smp/info.py +23 -0
- ararpy/smp/json.py +12 -1
- ararpy/smp/plots.py +10 -6
- ararpy/smp/sample.py +15 -5
- ararpy/smp/table.py +8 -0
- ararpy/test.py +76 -272
- {ararpy-0.1.1.dist-info → ararpy-0.1.12.dist-info}/METADATA +1 -1
- {ararpy-0.1.1.dist-info → ararpy-0.1.12.dist-info}/RECORD +21 -19
- {ararpy-0.1.1.dist-info → ararpy-0.1.12.dist-info}/LICENSE +0 -0
- {ararpy-0.1.1.dist-info → ararpy-0.1.12.dist-info}/WHEEL +0 -0
- {ararpy-0.1.1.dist-info → ararpy-0.1.12.dist-info}/top_level.txt +0 -0
ararpy/calc/arr.py
CHANGED
ararpy/calc/corr.py
CHANGED
|
@@ -30,6 +30,18 @@ def blank(a0: list, e0: list, a1: list, e1: list):
|
|
|
30
30
|
return arr.sub((a0, e0), (a1, e1))
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
def gain(a0: list, e0: list, a1: list, e1: list):
|
|
34
|
+
"""
|
|
35
|
+
:param a0: a list of tested isotope value
|
|
36
|
+
:param e0: 1 sigma error of a0, list type
|
|
37
|
+
:param a1: a list of blank isotope value
|
|
38
|
+
:param e1: 1 sigma error of a1, list type
|
|
39
|
+
:return: list of corrected data | error list
|
|
40
|
+
"""
|
|
41
|
+
# Do not force negative value to zero in correcting blank...
|
|
42
|
+
return arr.div((a0, e0), (a1, e1))
|
|
43
|
+
|
|
44
|
+
|
|
33
45
|
def mdf(rm: float, srm: float, m1: float, m2: float, ra: float = 298.56,
|
|
34
46
|
sra: float = 0):
|
|
35
47
|
"""
|
ararpy/calc/isochron.py
CHANGED
|
@@ -134,7 +134,7 @@ def get_ellipse(x: float, sx: float, y: float, sy: float, r: float, plt_sfactor:
|
|
|
134
134
|
return ellipse_points
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
def get_line_points(xscale, yscale, coeffs
|
|
137
|
+
def get_line_points(xscale, yscale, coeffs):
|
|
138
138
|
"""
|
|
139
139
|
|
|
140
140
|
Parameters
|
|
@@ -147,7 +147,9 @@ def get_line_points(xscale, yscale, coeffs=None):
|
|
|
147
147
|
-------
|
|
148
148
|
List of data points
|
|
149
149
|
"""
|
|
150
|
-
|
|
150
|
+
xscale = [float(i) for i in xscale]
|
|
151
|
+
yscale = [float(i) for i in yscale]
|
|
152
|
+
coeffs = [float(i) for i in coeffs]
|
|
151
153
|
if not isinstance(coeffs, list) or len(coeffs) < 2:
|
|
152
154
|
raise ValueError(f"Coeffs should be a list with length with 2.")
|
|
153
155
|
get_y = lambda x: coeffs[0] + coeffs[1] * x
|