"...src/components/experiment/overview/count/ExpDuration.tsx" did not exist on "78e874f9f63b1736d1deb735804334a37532ba63"
__init__.py 589 Bytes
Newer Older
yuhai's avatar
yuhai 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
__all__ = [
    "scf",
    "grad",
    "run",
    "stats",
    "fields",
    "penalty",
]

def __getattr__(name):
    from importlib import import_module
    if name in __all__:
        return import_module("." + name, __name__)
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")


def DSCF(mol, model, xc="HF", **kwargs):
    """A wrap function to create NN SCF object (RDSCF or UDSCF)"""
    from .scf import RDSCF, UDSCF
    if mol.spin == 0:
        return RDSCF(mol, model, xc, **kwargs)
    else:
        return UDSCF(mol, model, xc, **kwargs)

DeepSCF = DSCF