__init__.py 788 Bytes
Newer Older
zcxzcx1's avatar
zcxzcx1 committed
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
"""
Copyright (c) 2025 Ma Zhaojia

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""

from .relaxengine import Scheduler, Worker
from .baseline import ensure_directory, run_baseline
from .utils import count_atoms_cif
from .pbc_graph import radius_graph_pbc_cuda

try:
    from . import extensions
    _extensions_available = True
except ImportError as e:
    import warnings
    warnings.warn(f"Extensions not available: {e}. Falling back to PyTorch implementations.")
    extensions = None
    _extensions_available = False

__all__ = [
    "Scheduler",
    "ensure_directory", 
    "run_baseline",
    "count_atoms_cif",
    "Worker",
    "extensions",
    "radius_graph_pbc_cuda",
]