Skip to content

Commit 003ef41

Browse files
committed
add io to support general stru formats
1 parent b2b0303 commit 003ef41

File tree

7 files changed

+894
-187
lines changed

7 files changed

+894
-187
lines changed

python/pyabacus/src/pyabacus/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
__submodules__ = ["ModuleBase", "ModuleNAO", "hsolver", "Cell", "IntegralCalculator"]
3+
__submodules__ = ["ModuleBase", "ModuleNAO", "hsolver", "Cell", "IntegralCalculator", "io"]
44
__all__ = list(__submodules__)
55

66
def __getattr__(attr):
@@ -16,5 +16,8 @@ def __getattr__(attr):
1616
elif attr == "Cell":
1717
from .cell import Cell
1818
return Cell
19+
elif attr == "io":
20+
import pyabacus.io as io
21+
return io
1922
else:
2023
raise AttributeError(f"module {__name__} has no attribute {attr}")

0 commit comments

Comments
 (0)