Debian Codegraph @

src/pymbd/__init__.py

raw
1 import re
2 from importlib.metadata import PackageNotFoundError, version
3
4 from .pymbd import (
5 ang,
6 atomic_polarizabilities,
7 from_volumes,
8 mbd_energy,
9 mbd_energy_species,
10 molecular_polarizability,
11 screening,
12 screening_matrix,
13 )
14
15 __all__ = [
16 'mbd_energy',
17 'mbd_energy_species',
18 'screening',
19 'screening_matrix',
20 'from_volumes',
21 'atomic_polarizabilities',
22 'molecular_polarizability',
23 'ang',
24 ]
25
26 try:
27 __version__ = version('pymbd')
28 __version__ = re.split('[.-]', __version__, maxsplit=3)
29 __version__ = (*map(int, __version__[:3]), *__version__[3:])
30 except PackageNotFoundError:
31 __version__ = None