File size: 757 Bytes
24d7cbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""MatterSim model and integration entry points."""

MATTERSIM_SOURCE_VERSION = "1.2.3"
MATTERSIM_INTEGRATION_VERSION = "dcu2"

from .adapter import (
    DEFAULT_CHECKPOINT,
    load_calculator,
    load_potential,
    predict_structures,
    resolve_checkpoint,
)
__all__ = [
    "DEFAULT_CHECKPOINT",
    "M3Gnet",
    "MATTERSIM_INTEGRATION_VERSION",
    "MATTERSIM_SOURCE_VERSION",
    "MatterSim",
    "load_calculator",
    "load_potential",
    "predict_structures",
    "resolve_checkpoint",
]


def __getattr__(name):
    if name in {"M3Gnet", "MatterSim"}:
        from .mattersim import M3Gnet, MatterSim

        return {"M3Gnet": M3Gnet, "MatterSim": MatterSim}[name]
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")