-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
62 lines (52 loc) · 1.37 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
"""Miscellaneous tools for marine carbonate chemistry and other such things."""
import string, textwrap
import numpy as np
from . import crm, infrared, molar, spectro, vindta, plot
from .vindta import (
Dbs,
read_dbs,
read_logfile,
get_logfile_index,
get_sample_blanks,
blank_progression,
centre_and_scale,
de_centre_and_scale,
get_session_blanks,
blank_correction,
get_blank_corrections,
get_density,
get_standard_calibrations,
get_session_calibrations,
calibrate_dic,
plot_session_blanks,
plot_blanks,
plot_k_dic,
plot_dic_offset,
concat,
poison_correction,
)
from .plot import get_cluster_profile, cluster_profile
__all__ = ["crm", "infrared", "molar", "spectro", "vindta"]
__version__ = "0.0.13"
lcletter = dict(zip(range(1, 27), string.ascii_lowercase))
def sigfig(x, sf):
"""Return `x` to `sf` significant figures."""
factor = 10.0 ** np.ceil(np.log10(np.abs(x)))
return factor * np.around(x / factor, decimals=sf)
def say_hello():
greeting = textwrap.dedent(
r"""
k Miscellaneous tools for
o marine carbonate chemistry
o and other such things
l
s Matthew P. Humphreys
t https://mvdh.xyz
o
f Version {}
""".format(
__version__
)
)
print(greeting)
hello = say_hello