Skip to content

Commit a8a94f9

Browse files
authored
Merge pull request #15 from itsMig/master
∆49 functionality
2 parents b81fa04 + a69e063 commit a8a94f9

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

D47crunch/__init__.py

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3240,7 +3240,7 @@ class D48data(D4xdata):
32403240
reference frame.
32413241
32423242
By default equal to (after [Fiebig et al. (2019)](https://doi.org/10.1016/j.chemgeo.2019.05.019),
3243-
Fiebig et al. (in press)):
3243+
[Fiebig et al. (2021)](https://doi.org/10.1016/j.gca.2021.07.012)):
32443244
32453245
```py
32463246
{
@@ -3276,6 +3276,49 @@ def save_D48_correl(self, *args, **kwargs):
32763276

32773277
save_D48_correl.__doc__ = D4xdata._save_D4x_correl.__doc__.replace('D4x', 'D48')
32783278

3279+
3280+
class D49data(D4xdata):
3281+
'''
3282+
Store and process data for a large set of Δ49 analyses,
3283+
usually comprising more than one analytical session.
3284+
'''
3285+
3286+
Nominal_D4x = {"1000C": 0.0, "25C": 2.228} # Wang 2004
3287+
'''
3288+
Nominal Δ49 values assigned to the Δ49 anchor samples, used by
3289+
`D49data.standardize()` to normalize unknown samples to an absolute Δ49
3290+
reference frame.
3291+
3292+
By default equal to (after [Wang et al. (2004)](https://doi.org/10.1016/j.gca.2004.05.039)):
3293+
3294+
```py
3295+
{
3296+
"1000C": 0.0,
3297+
"25C": 2.228
3298+
}
3299+
```
3300+
'''
3301+
3302+
@property
3303+
def Nominal_D49(self):
3304+
return self.Nominal_D4x
3305+
3306+
@Nominal_D49.setter
3307+
def Nominal_D49(self, new):
3308+
self.Nominal_D4x = dict(**new)
3309+
self.refresh()
3310+
3311+
def __init__(self, l=[], **kwargs):
3312+
'''
3313+
**Parameters:** same as `D4xdata.__init__()`
3314+
'''
3315+
D4xdata.__init__(self, l=l, mass='49', **kwargs)
3316+
3317+
def save_D49_correl(self, *args, **kwargs):
3318+
return self._save_D4x_correl(*args, **kwargs)
3319+
3320+
save_D49_correl.__doc__ = D4xdata._save_D4x_correl.__doc__.replace('D4x', 'D49')
3321+
32793322
class _SessionPlot():
32803323
'''
32813324
Simple placeholder class

0 commit comments

Comments
 (0)