coldmol 0.3.1__cp315-cp315-win_amd64.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.
Files changed (53) hide show
  1. coldmol/__init__.py +61 -0
  2. coldmol/__init__.pyi +49 -0
  3. coldmol/_core/__init__.pyi +771 -0
  4. coldmol/_core/interp1d.pyi +55 -0
  5. coldmol/_core/interp2d.pyi +34 -0
  6. coldmol/_core/interp3d.pyi +38 -0
  7. coldmol/_core/probe.pyi +31 -0
  8. coldmol/_core/util.pyi +56 -0
  9. coldmol/_core.cp315-win_amd64.pyd +0 -0
  10. coldmol/_res/include/ColdMol/backend/CUDA/numeric.cuh +61 -0
  11. coldmol/_res/include/ColdMol/backend/OpenCL/numeric.h +33 -0
  12. coldmol/_res/include/ColdMol/common/compat.h +73 -0
  13. coldmol/_res/include/ColdMol/common/fssh/interp1d.h +5 -0
  14. coldmol/_res/include/ColdMol/common/fssh/matrix.h +213 -0
  15. coldmol/_res/include/ColdMol/common/func/actor/coulomb.cmf +9 -0
  16. coldmol/_res/include/ColdMol/common/func/actor/magnetic.cmf +10 -0
  17. coldmol/_res/include/ColdMol/common/func/actor/stark.cmf +14 -0
  18. coldmol/_res/include/ColdMol/common/func/actor/zeeman.cmf +14 -0
  19. coldmol/_res/include/ColdMol/common/func/euler.cmf.h +74 -0
  20. coldmol/_res/include/ColdMol/common/func/interp1d/icubicspline.cmf.h +24 -0
  21. coldmol/_res/include/ColdMol/common/func/interp1d/rcubicspline.cmf.h +30 -0
  22. coldmol/_res/include/ColdMol/common/func/interp2d/rbicubicspline.cmf.h +31 -0
  23. coldmol/_res/include/ColdMol/common/func/interp3d/rtricubicspline.cmf.h +40 -0
  24. coldmol/_res/include/ColdMol/common/func/probe/bfield.cmf +9 -0
  25. coldmol/_res/include/ColdMol/common/func/probe/efield.cmf +9 -0
  26. coldmol/_res/include/ColdMol/common/func/probe/slice.cmf.h +44 -0
  27. coldmol/_res/include/ColdMol/common/func/probe/tof.cmf.h +35 -0
  28. coldmol/_res/include/ColdMol/common/func/rk4.cmf.h +139 -0
  29. coldmol/_res/include/ColdMol/common/func/vv.cmf.h +118 -0
  30. coldmol/_res/include/ColdMol/common/function.h +119 -0
  31. coldmol/_res/include/ColdMol/common/interp.h +195 -0
  32. coldmol/_res/include/ColdMol/common/numeric.h +518 -0
  33. coldmol/_res/include/ColdMol/common/particle.h +28 -0
  34. coldmol/_res/include/ColdMol/common/simulator.h +69 -0
  35. coldmol/_version.py +1 -0
  36. coldmol/builtins/__init__.py +708 -0
  37. coldmol/builtins/ba138_f19.py +188 -0
  38. coldmol/builtins/ba138_f19.yaml +23 -0
  39. coldmol/builtins/ba138_o16_h1.yaml +14 -0
  40. coldmol/builtins/sr88_f19.py +172 -0
  41. coldmol/builtins/sr88_f19.yaml +24 -0
  42. coldmol/coldmol.dll +0 -0
  43. coldmol/coldmol_backend_opencl.dll +0 -0
  44. coldmol/py.typed +0 -0
  45. coldmol/species/basis/__init__.py +9 -0
  46. coldmol/species/basis/_base.py +108 -0
  47. coldmol/species/basis/_hund_a.py +98 -0
  48. coldmol/species/basis/_hund_b.py +72 -0
  49. coldmol-0.3.1.dist-info/DELVEWHEEL +2 -0
  50. coldmol-0.3.1.dist-info/METADATA +29 -0
  51. coldmol-0.3.1.dist-info/RECORD +53 -0
  52. coldmol-0.3.1.dist-info/WHEEL +5 -0
  53. coldmol.libs/msvcp140.dll +0 -0
coldmol/__init__.py ADDED
@@ -0,0 +1,61 @@
1
+ from __future__ import annotations
2
+
3
+
4
+ # start delvewheel patch
5
+ def _delvewheel_patch_1_13_3():
6
+ import os
7
+ if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'coldmol.libs'))):
8
+ os.add_dll_directory(libs_dir)
9
+
10
+
11
+ _delvewheel_patch_1_13_3()
12
+ del _delvewheel_patch_1_13_3
13
+ # end delvewheel patch
14
+
15
+ import os
16
+ from pathlib import Path
17
+ from typing import TYPE_CHECKING, overload
18
+
19
+ _package_dir = Path(__file__).resolve().parent
20
+
21
+ # Help Windows finding coldmol.dll next to _core.pyd
22
+ if os.name == "nt":
23
+ _dll_dir_cookie = os.add_dll_directory(str(_package_dir))
24
+
25
+ # Tell the C++ runtime where include/ColdMol/common lives
26
+ _resource_dir = _package_dir / "_res"
27
+ if _resource_dir.is_dir():
28
+ os.environ.setdefault("CM_SOURCE_DIR", str(_resource_dir))
29
+
30
+ # Package version
31
+ try: from ._version import version as __version__
32
+ except ImportError: __version__ = "0.0.0+unknown"
33
+
34
+ from . import _core
35
+ from ._core import *
36
+
37
+ # Built-in species API
38
+ from .builtins import BasisVector, HundsCaseB, HundsCaseBLinearTriatomic, Species
39
+ @overload
40
+ def species() -> tuple[str, ...]: ...
41
+ @overload
42
+ def species(name: str) -> Species: ...
43
+ def species(name: str | None = None) -> tuple[str, ...] | Species:
44
+ return Species.available() if name is None else Species.get(name)
45
+
46
+ # # Keep at end (for stubs)
47
+ # from types import ModuleType as _ModuleType
48
+ # def _set_exports(module: _ModuleType) -> None:
49
+ # for value in list(vars(module).values()):
50
+ # if isinstance(value, _ModuleType) and value.__name__.rpartition(".")[0] == module.__name__:
51
+ # _set_exports(value)
52
+ # module.__all__ = sorted(name for name in vars(module) if not name.startswith("_"))
53
+ # _set_exports(_core)
54
+ # __all__ = sorted({
55
+ # *_core.__all__,
56
+ # "BasisVector",
57
+ # "HundsCaseB",
58
+ # "Species",
59
+ # "species"
60
+ # })
61
+ # del _set_exports, _ModuleType
coldmol/__init__.pyi ADDED
@@ -0,0 +1,49 @@
1
+ from typing import overload
2
+
3
+ from coldmol import builtins as builtins
4
+ from coldmol._core import (
5
+ absolute_progress_indicator as absolute_progress_indicator,
6
+ argument as argument,
7
+ builtin as builtin,
8
+ device as device,
9
+ device_info as device_info,
10
+ functor as functor,
11
+ interp1d as interp1d,
12
+ interp2d as interp2d,
13
+ interp3d as interp3d,
14
+ npywriter as npywriter,
15
+ npzwriter as npzwriter,
16
+ parseCMF as parseCMF,
17
+ particle as particle,
18
+ probe as probe,
19
+ progress_bar as progress_bar,
20
+ progress_indicator as progress_indicator,
21
+ renderspec as renderspec,
22
+ resolution as resolution,
23
+ runner as runner,
24
+ signature as signature,
25
+ simulator as simulator,
26
+ state as state,
27
+ unit as unit,
28
+ unitdim as unitdim,
29
+ unitsystem as unitsystem,
30
+ util as util,
31
+ vec2 as vec2,
32
+ vec3 as vec3,
33
+ writer as writer
34
+ )
35
+ from coldmol.builtins import (
36
+ BasisVector as BasisVector,
37
+ HundsCaseB as HundsCaseB,
38
+ HundsCaseBLinearTriatomic as HundsCaseBLinearTriatomic,
39
+ Species as Species
40
+ )
41
+
42
+
43
+ TYPE_CHECKING: bool = False
44
+
45
+ @overload
46
+ def species() -> tuple[str, ...]: ...
47
+
48
+ @overload
49
+ def species(name: str) -> Species: ...