pylamda 0.1.0__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.
- pylamda/__init__.py +82 -0
- pylamda/__main__.py +7 -0
- pylamda/bib.py +859 -0
- pylamda/catalogue.py +283 -0
- pylamda/cli.py +529 -0
- pylamda/combine.py +318 -0
- pylamda/compare.py +1014 -0
- pylamda/data/database_refs.bib +55 -0
- pylamda/data/references.bib +1079 -0
- pylamda/data/references.json +1909 -0
- pylamda/fix.py +838 -0
- pylamda/formula.py +76 -0
- pylamda/issues.py +182 -0
- pylamda/model.py +442 -0
- pylamda/py.typed +0 -0
- pylamda/reader.py +351 -0
- pylamda/references.py +120 -0
- pylamda/refsearch.py +616 -0
- pylamda/verify.py +750 -0
- pylamda/writer.py +138 -0
- pylamda-0.1.0.dist-info/METADATA +84 -0
- pylamda-0.1.0.dist-info/RECORD +25 -0
- pylamda-0.1.0.dist-info/WHEEL +4 -0
- pylamda-0.1.0.dist-info/entry_points.txt +3 -0
- pylamda-0.1.0.dist-info/licenses/LICENSE +21 -0
pylamda/__init__.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""pylamda: read, write, verify, compare, combine and fix files in the LAMDA format.
|
|
2
|
+
|
|
3
|
+
The format is that of the Leiden Atomic and Molecular Database (LAMDA,
|
|
4
|
+
https://home.strw.leidenuniv.nl/~moldata/molformat.html). pylamda follows the standard
|
|
5
|
+
strictly: collision partners are identified by their ID only, and deviations are
|
|
6
|
+
reported as issues, never silently interpreted.
|
|
7
|
+
|
|
8
|
+
>>> import pylamda
|
|
9
|
+
>>> data = pylamda.read("co.dat") # doctest: +SKIP
|
|
10
|
+
>>> data.issues # doctest: +SKIP
|
|
11
|
+
>>> pylamda.verify(data) # doctest: +SKIP
|
|
12
|
+
>>> pylamda.write(data, "co_normalised.dat") # doctest: +SKIP
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
16
|
+
|
|
17
|
+
from .bib import BibEntry, BibResult, bibtex, collect_references
|
|
18
|
+
from .combine import AddedPartner, CombineError, DroppedPartner, add_partner, drop_partner
|
|
19
|
+
from .compare import LamdaDiff, LevelMatch, PartnerDiff, compare, critical_density, match_levels
|
|
20
|
+
from .fix import FixError, FixRecord, add_reference, fix, patch
|
|
21
|
+
from .issues import CODES, SEVERITIES, Issue, LamdaReadError
|
|
22
|
+
from .model import (
|
|
23
|
+
PARTNER_IDS,
|
|
24
|
+
PARTNERS,
|
|
25
|
+
STANDARD_PARTNERS,
|
|
26
|
+
BlockSource,
|
|
27
|
+
CollisionSet,
|
|
28
|
+
LamdaData,
|
|
29
|
+
SourceMap,
|
|
30
|
+
partner_name,
|
|
31
|
+
split_partner_line,
|
|
32
|
+
)
|
|
33
|
+
from .reader import read
|
|
34
|
+
from .references import find_dois
|
|
35
|
+
from .verify import verify
|
|
36
|
+
from .writer import write
|
|
37
|
+
|
|
38
|
+
try:
|
|
39
|
+
__version__ = version("pylamda")
|
|
40
|
+
except PackageNotFoundError: # not installed
|
|
41
|
+
__version__ = "0+unknown"
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"CODES",
|
|
45
|
+
"PARTNERS",
|
|
46
|
+
"PARTNER_IDS",
|
|
47
|
+
"PartnerDiff",
|
|
48
|
+
"SEVERITIES",
|
|
49
|
+
"STANDARD_PARTNERS",
|
|
50
|
+
"AddedPartner",
|
|
51
|
+
"BibEntry",
|
|
52
|
+
"BibResult",
|
|
53
|
+
"BlockSource",
|
|
54
|
+
"CollisionSet",
|
|
55
|
+
"CombineError",
|
|
56
|
+
"DroppedPartner",
|
|
57
|
+
"FixError",
|
|
58
|
+
"FixRecord",
|
|
59
|
+
"Issue",
|
|
60
|
+
"LevelMatch",
|
|
61
|
+
"LamdaData",
|
|
62
|
+
"LamdaDiff",
|
|
63
|
+
"LamdaReadError",
|
|
64
|
+
"SourceMap",
|
|
65
|
+
"__version__",
|
|
66
|
+
"add_partner",
|
|
67
|
+
"add_reference",
|
|
68
|
+
"bibtex",
|
|
69
|
+
"collect_references",
|
|
70
|
+
"compare",
|
|
71
|
+
"critical_density",
|
|
72
|
+
"drop_partner",
|
|
73
|
+
"find_dois",
|
|
74
|
+
"fix",
|
|
75
|
+
"match_levels",
|
|
76
|
+
"partner_name",
|
|
77
|
+
"patch",
|
|
78
|
+
"read",
|
|
79
|
+
"split_partner_line",
|
|
80
|
+
"verify",
|
|
81
|
+
"write",
|
|
82
|
+
]
|