File size: 978 Bytes
45e5a32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""
MatRIS: Material Representation Learning with Interatomic Structure

A deep learning model for predicting material properties including energy, 
forces, stress, and magnetic moments.
"""

import sys

from importlib.metadata import PackageNotFoundError, version

try:
    __version__ = version(__name__)  # read from pyproject.toml
except PackageNotFoundError:
    __version__ = "unknown"

# Import main model
from model.matris import MatRIS

# Import graph components
from onescience.datapipes.materials.matris import GraphConverter, RadiusGraph

# 把本仓库 model 注册为 onescience.models.matris,使得 OneScience 的 MatRISCalculator、
# StructOptimizer 等工具类在加载预训练权重时,直接使用本仓库的 MatRIS.load 方法。
# 默认权重会下载到本仓库根目录下的 weight/ 中。
sys.modules["onescience.models.matris"] = sys.modules[__name__]

__all__ = [
    "MatRIS",
    "GraphConverter", 
    "RadiusGraph",
    "__version__",
]