D95eq 1.2.0__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.
- d95eq-1.2.0/.gitattributes +2 -0
- d95eq-1.2.0/LICENSE +21 -0
- d95eq-1.2.0/PKG-INFO +41 -0
- d95eq-1.2.0/build-metadata.py +34 -0
- d95eq-1.2.0/build_doc.py +6 -0
- d95eq-1.2.0/calib_coefs/D47_calib_coefs.csv +4 -0
- d95eq-1.2.0/calib_coefs/D48_calib_coefs.csv +6 -0
- d95eq-1.2.0/calib_coefs/calib_coefs.py +20 -0
- d95eq-1.2.0/changelog.md +7 -0
- d95eq-1.2.0/docpages/cli.md +7 -0
- d95eq-1.2.0/docpages/install.md +15 -0
- d95eq-1.2.0/docs/index.html +4515 -0
- d95eq-1.2.0/engine-sandbox/ananas.py +11 -0
- d95eq-1.2.0/engine-sandbox/compute-inverse-pdf.py +77 -0
- d95eq-1.2.0/engine-sandbox/main.py +13 -0
- d95eq-1.2.0/examples/Teq-report.csv +4 -0
- d95eq-1.2.0/examples/example.py +191 -0
- d95eq-1.2.0/examples/example_data.csv +4 -0
- d95eq-1.2.0/examples/example_plot.pdf +0 -0
- d95eq-1.2.0/examples/example_plot.png +0 -0
- d95eq-1.2.0/examples/large_example.py +176 -0
- d95eq-1.2.0/examples/large_example_plot_0_nearest_D47eq.pdf +0 -0
- d95eq-1.2.0/examples/large_example_plot_1_joint_nearest_D47eq.pdf +0 -0
- d95eq-1.2.0/examples/large_example_plot_2_lazy_joint_nearest_D47eq.pdf +0 -0
- d95eq-1.2.0/examples/output.csv +4 -0
- d95eq-1.2.0/examples/output_0_nearest_D47eq.csv +9 -0
- d95eq-1.2.0/examples/output_1_joint_nearest_D47eq.csv +9 -0
- d95eq-1.2.0/examples/output_2_lazy_joint_nearest_D47eq.csv +9 -0
- d95eq-1.2.0/examples/pdfs-example.pdf +0 -0
- d95eq-1.2.0/justfile +28 -0
- d95eq-1.2.0/pyproject.toml +47 -0
- d95eq-1.2.0/readme.md +21 -0
- d95eq-1.2.0/src/D95eq/__init__.py +1387 -0
- d95eq-1.2.0/src/D95eq/_metadata.py +8 -0
- d95eq-1.2.0/src/D95eq/_tools.py +204 -0
- d95eq-1.2.0/tests/basic_test.py +78 -0
- d95eq-1.2.0/tests/confidence_band_test.py +28 -0
- d95eq-1.2.0/tests/interp_test.py +27 -0
- d95eq-1.2.0/tests/plotting_test.py +48 -0
- d95eq-1.2.0/tests/qmc_test.py +51 -0
- d95eq-1.2.0/tests/thermo_test.py +42 -0
- d95eq-1.2.0/todo.md +2 -0
- d95eq-1.2.0/uv.lock +746 -0
d95eq-1.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Mathieu Daëron
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
d95eq-1.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: D95eq
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Test for clumped isotope equilibrium and estimate carbonate formation temperatures from dual clumped isotope measurements
|
|
5
|
+
Author-email: Mathieu Daëron <mathieu@daeron.fr>, Timothy Pollard <timothy.pollard@unimelb.edu.au>
|
|
6
|
+
Requires-Python: >=3.14
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: correldata>=2.0.0
|
|
11
|
+
Requires-Dist: lmfit>=1.3.4
|
|
12
|
+
Requires-Dist: matplotlib>=3.10.8
|
|
13
|
+
Requires-Dist: ogls>=1.0.1
|
|
14
|
+
Requires-Dist: tqdm>=4.67.1
|
|
15
|
+
Requires-Dist: typer>=0.21.1
|
|
16
|
+
Requires-Dist: typing-extensions>=4.15.0
|
|
17
|
+
Project-URL: Documentation, https://mdaeron.github.io/D95eq
|
|
18
|
+
Project-URL: Home, https://github.com/mdaeron/D95eq
|
|
19
|
+
|
|
20
|
+
# D95eq
|
|
21
|
+
|
|
22
|
+
(because 47 + 48 = 95)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Test for clumped isotope equilibrium and estimate carbonate formation temperatures from dual clumped isotope measurements
|
|
27
|
+
|
|
28
|
+
Formation temperatures are estimated either by direct intersection with the equilibrium curve or by projection on the equilibrium curve following an aribitrary kinetic fractionation slope.
|
|
29
|
+
|
|
30
|
+
Returns p-values and (statistically correlated) temperature estimates with full error propagation accounting for:
|
|
31
|
+
|
|
32
|
+
+ Arbitrarily correlated analytical errors in Δ<sub>47</sub> and Δ<sub>48</sub> measurements
|
|
33
|
+
|
|
34
|
+
+ Arbitrarily correlated calibration errors on equilibrium Δ<sub>47</sub> and Δ<sub>48</sub> laws
|
|
35
|
+
|
|
36
|
+
+ Uncertainty in the kinetic fractionation slope
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<img align="center" src="examples/example_plot.png">
|
|
41
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import tomllib
|
|
2
|
+
import pathlib
|
|
3
|
+
import datetime
|
|
4
|
+
|
|
5
|
+
srcpath = next(pathlib.Path("src").glob("*/__init__.py")).parent
|
|
6
|
+
|
|
7
|
+
with open('pyproject.toml', 'rb') as fid:
|
|
8
|
+
toml = tomllib.load(fid)
|
|
9
|
+
|
|
10
|
+
export = []
|
|
11
|
+
with open(srcpath / '_metadata.py', 'w') as fid:
|
|
12
|
+
|
|
13
|
+
align = 16
|
|
14
|
+
for field, content in (
|
|
15
|
+
('version', toml['project']['version']),
|
|
16
|
+
('description', toml['project']['description']),
|
|
17
|
+
('author', None),
|
|
18
|
+
('authors', ' & '.join([', '.join(_['name'] for _ in toml['project']['authors'][:-1]), toml['project']['authors'][-1]['name']])),
|
|
19
|
+
('contact', toml['project']['authors'][0]['email']),
|
|
20
|
+
('license', toml['project']['license']),
|
|
21
|
+
('copyright', toml['project']['authors'][0]['name']),
|
|
22
|
+
('date', datetime.date.today().isoformat()),
|
|
23
|
+
):
|
|
24
|
+
if content is None:
|
|
25
|
+
continue
|
|
26
|
+
name = f'__{field}__'
|
|
27
|
+
fid.write(f'{name:<{align}s}= "{content}"\n')
|
|
28
|
+
export.append(f'"{name}"')
|
|
29
|
+
fid.write(f'{"__all__":<{align}s}= [{', '.join(export)}]\n')
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
with open(srcpath / '_metadata.py', 'r') as fid:
|
|
34
|
+
print(fid.read())
|
d95eq-1.2.0/build_doc.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
degree, coef, SE_coef, correl_coef, , , ,
|
|
2
|
+
0, 0.121352, 0.00271974, 1.000000000, -0.664408766, 0.664408766, -0.664408766, 0.664408766
|
|
3
|
+
1, 6.2299, 0.229338, -0.664408766, 1.000000000, -1.000000000, 1.000000000, -1.000000000
|
|
4
|
+
2, -13483.2, 496.352, 0.664408766, -1.000000000, 1.000000000, -1.000000000, 1.000000000
|
|
5
|
+
3, 9.33758e+06, 343740, -0.664408766, 1.000000000, -1.000000000, 1.000000000, -1.000000000
|
|
6
|
+
4, -7.70485e+08, 2.83635e+07, 0.664408766, -1.000000000, 1.000000000, -1.000000000, 1.000000000
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import numpy as _np
|
|
2
|
+
import correldata
|
|
3
|
+
from D95eq import Engine
|
|
4
|
+
from D95eq import _compute_D48_calib_coefficients
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
coefs = Engine.D47_calib_coefs
|
|
8
|
+
data = correldata.CorrelData({
|
|
9
|
+
'degree' : _np.array([k for k,v in enumerate(coefs)]),
|
|
10
|
+
'coef': correldata.uarray(coefs),
|
|
11
|
+
})
|
|
12
|
+
data.to_csv('D47_calib_coefs.csv', correl_format = 'z.9f')
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
coefs = _compute_D48_calib_coefficients()
|
|
16
|
+
data = correldata.CorrelData({
|
|
17
|
+
'degree' : _np.array([k for k,v in enumerate(coefs)]),
|
|
18
|
+
'coef': correldata.uarray(coefs),
|
|
19
|
+
})
|
|
20
|
+
data.to_csv('D48_calib_coefs.csv', correl_format = 'z.9f')
|
d95eq-1.2.0/changelog.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# 1. Installation
|
|
2
|
+
|
|
3
|
+
## 1.1 Recommended method
|
|
4
|
+
|
|
5
|
+
The recommended way is to use via `uv` ([https://docs.astral.sh/uv]()).
|
|
6
|
+
|
|
7
|
+
If you only want to run the command-line interface (CLI): after installing `uv`, this should be as simple as `uvx D95eq` or `uv tool install D95eq`.
|
|
8
|
+
|
|
9
|
+
If you want to import `D95eq` in some Python code, once you are within a `uv` project (`uv init`), you can install the module with `uv add D95eq`.
|
|
10
|
+
|
|
11
|
+
After installation, open a new shell window and try `D95eq --help`.
|
|
12
|
+
|
|
13
|
+
## 1.2 Other methods
|
|
14
|
+
|
|
15
|
+
You can of course install globally via `pip` (`pip install D95eq`), or only install the CLI using `pipx` (`pipx install D95eq`).
|