forked from PaddlePaddle/PaddleScience
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5bea62
commit 4ecad77
Showing
24 changed files
with
2,199 additions
and
3,654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
from __future__ import annotations | ||
|
||
import os | ||
from importlib.metadata import PackageNotFoundError, version | ||
from importlib.metadata import PackageNotFoundError | ||
from importlib.metadata import version | ||
from typing import Literal | ||
|
||
try: | ||
__version__ = version(__name__) | ||
except PackageNotFoundError: | ||
__version__ = 'unknown' | ||
TrainTask = Literal['ef', 'efs', 'efsm'] | ||
PredTask = Literal['e', 'ef', 'em', 'efs', 'efsm'] | ||
__version__ = "unknown" | ||
TrainTask = Literal["ef", "efs", "efsm"] | ||
PredTask = Literal["e", "ef", "em", "efs", "efsm"] | ||
ROOT = os.path.dirname(os.path.dirname(__file__)) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from __future__ import annotations | ||
from chgnet.graph.converter import CrystalGraphConverter | ||
from chgnet.graph.crystalgraph import CrystalGraph | ||
|
||
from chgnet.graph.converter import CrystalGraphConverter # noqa | ||
from chgnet.graph.crystalgraph import CrystalGraph # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.