Download model/__init__.py from OneScience-Group/MatterGen: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/OneScience-Group/MatterGen/resolve/main/model/__init__.py
- Command line
-
hf download hf://OneScience-Group/MatterGen/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/OneScience-Group/MatterGen/resolve/main/model/__init__.py
497 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| __version__ = "1.0.0" | |
| """MatterGen crystal structure generation model.""" | |
| from typing import TYPE_CHECKING | |
| if TYPE_CHECKING: | |
| from .generator import CrystalGenerator | |
| __all__ = ["CrystalGenerator"] | |
| def __getattr__(name: str): | |
| if name == "CrystalGenerator": | |
| from .generator import CrystalGenerator | |
| return CrystalGenerator | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |