ararpy 0.1.21__tar.gz → 0.1.22__tar.gz
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-0.1.21 → ararpy-0.1.22}/PKG-INFO +1 -1
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/__init__.py +1 -1
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/corr.py +16 -17
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy.egg-info/PKG-INFO +1 -1
- {ararpy-0.1.21 → ararpy-0.1.22}/setup.py +1 -1
- {ararpy-0.1.21 → ararpy-0.1.22}/LICENSE +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/README.md +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/__init__.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/age.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/arr.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/basic.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/err.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/histogram.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/isochron.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/jvalue.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/plot.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/raw_funcs.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/regression.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/calc/spectra.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/022_VU124-M11a.ahd +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/20WHA0103.age +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/22WHA0078.xls +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/22WHA0433.age +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/22WHA0433.arr +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/22WHA0433.full.xls +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/24WHN0001-51-592.XLS +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/AHD.input-filter +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/ArAr.calc +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/ArArCALC.age +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/NGX-600 - Copy.TXT +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/NGX-600.TXT +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/NGX-XLS.input-filter +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/Qtegra-exported-xls.input-filter +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/S01-239.csv +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/WH01.irra +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/WHA.pdf +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/raw_example.xls +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/examples/sample-default.smp +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/__init__.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/arr_file.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/basic.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/calc_file.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/new_file.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/raw_file.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/files/xls.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/EXPORT_TO_PDF_DATA_PROPERTIES.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/__init__.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/basic.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/calculation.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/consts.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/corr.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/diffusion_funcs.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/export.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/info.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/initial.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/json.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/plots.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/raw.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/sample.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/style.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/smp/table.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/test.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/thermo/__init__.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/thermo/arrhenius.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/thermo/atomic_level_random_walk.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy/thermo/basic.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy.egg-info/SOURCES.txt +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy.egg-info/dependency_links.txt +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/ararpy.egg-info/top_level.txt +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/setup.cfg +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/tests/test.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/tests/test2.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/tests/test_error_correlation.py +0 -0
- {ararpy-0.1.21 → ararpy-0.1.22}/tests/test_regression_methods.py +0 -0
|
@@ -61,10 +61,10 @@ def mdf(rm: float, srm: float, m1: float, m2: float, ra: float = 298.56,
|
|
|
61
61
|
sratio_m = err.div((m2, sm2), (m1, sm1))
|
|
62
62
|
useRyu = False
|
|
63
63
|
if not useRyu:
|
|
64
|
-
# line
|
|
65
|
-
k1 = (ra / rm
|
|
66
|
-
k2 = err.div(((ra / rm
|
|
67
|
-
# exp
|
|
64
|
+
# line, D = 1 + (ra / rm - 1) / dm # Renne2009
|
|
65
|
+
k1 = 1 + (ra / rm - 1) / delta_m
|
|
66
|
+
k2 = err.div(((ra / rm - 1), err.div((ra, sra), (rm, srm))), (delta_m, sdelta_m))
|
|
67
|
+
# exp, D = 1 + ln(ra / rm) / (m1 * ln(m2/m1)) # Renne2009
|
|
68
68
|
try:
|
|
69
69
|
k3 = (np.log(ra / rm) / np.log(ratio_m)) * (1 / m1) + 1
|
|
70
70
|
v1 = err.log((ra / rm, err.div((ra, sra), (rm, srm))))
|
|
@@ -73,7 +73,7 @@ def mdf(rm: float, srm: float, m1: float, m2: float, ra: float = 298.56,
|
|
|
73
73
|
k4 = err.div((np.log(ra / rm) / np.log(ratio_m), v3), (m1, sm1))
|
|
74
74
|
except Exception:
|
|
75
75
|
k3, k4 = 0, 0
|
|
76
|
-
# pow
|
|
76
|
+
# pow, D = pow(ra / rm, 1 / dm) # Renne2009
|
|
77
77
|
try:
|
|
78
78
|
k5 = pow((ra / rm), (1 / delta_m)) # Renne2009, B.D. Turrin2010
|
|
79
79
|
k6 = err.pow((ra / rm, err.div((ra, sra), (rm, srm))),
|
|
@@ -105,18 +105,17 @@ def discr(a0: list, e0: list, mdf: list, smdf: list, m: list, m40: list,
|
|
|
105
105
|
if isRelative:
|
|
106
106
|
smdf = [smdf[i] * mdf[i] / 100 for i in range(len(smdf))]
|
|
107
107
|
for i in range(min([len(arg) for arg in [a0, e0, mdf, smdf]])):
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if method.lower().startswith("l"):
|
|
111
|
-
k0 = 1 / (
|
|
112
|
-
k1 = err.
|
|
113
|
-
elif method.lower().startswith("e"):
|
|
114
|
-
k0 = 1 / (
|
|
115
|
-
k1 = err.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
k1 = err.div((1, 0), (mdf[i] ** delta_mass, err.pow((mdf[i], smdf[i]), (delta_mass, 0))))
|
|
108
|
+
delta_m = abs(m40[i] - m[i])
|
|
109
|
+
ratio_m = abs(m40[i] / m[i]) if m[i] != 0 else 1
|
|
110
|
+
if method.lower().startswith("l"): # linear
|
|
111
|
+
k0 = 1 / (delta_m * mdf[i] - delta_m + 1) if (delta_m * mdf[i] - delta_m + 1) != 0 else 0
|
|
112
|
+
k1 = err.rec((delta_m * mdf[i] - delta_m + 1, smdf[i] * delta_m))
|
|
113
|
+
elif method.lower().startswith("e"): # exponential
|
|
114
|
+
k0 = 1 / np.exp((mdf - 1) * m * np.log(m40 / m))
|
|
115
|
+
k1 = err.rec((1 / k0, err.pow((np.e, 0), ((mdf - 1) * m * np.log(m40 / m), err.mul((mdf - 1, smdf), (m * np.log(m40 / m), 0))))))
|
|
116
|
+
elif method.lower().startswith("p"): # power
|
|
117
|
+
k0 = 1 / (mdf[i] ** delta_m)
|
|
118
|
+
k1 = err.rec((mdf[i] ** delta_m, err.pow((mdf[i], smdf[i]), (delta_m, 0))))
|
|
120
119
|
else:
|
|
121
120
|
k0 = 1
|
|
122
121
|
k1 = 0
|
|
@@ -16,7 +16,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
|
|
|
16
16
|
|
|
17
17
|
setuptools.setup(
|
|
18
18
|
name='ararpy', #
|
|
19
|
-
version='0.1.
|
|
19
|
+
version='0.1.22', # version
|
|
20
20
|
author='Yang Wu',
|
|
21
21
|
author_email='wuycug@hotmail.com',
|
|
22
22
|
description='A project for Ar-Ar geochronology', # short description
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|