Skip to content

Commit 764d0c5

Browse files
committed
Add __all__ in __init__.py
1 parent 298e4d4 commit 764d0c5

5 files changed

Lines changed: 53 additions & 2 deletions

File tree

.codacy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ engines:
66
- 'examples/**'
77
exclude_paths:
88
- 'README.md'
9-
- 'docs/**'
10-
- '**/__init__.py'
9+
- 'docs/**'

deepxde/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,21 @@
1414
from .model import Model
1515
from .postprocessing import saveplot
1616
from .utils import apply
17+
18+
19+
__all__ = [
20+
"bc",
21+
"callbacks",
22+
"data",
23+
"geometry",
24+
"maps",
25+
"DirichletBC",
26+
"NeumannBC",
27+
"OperatorBC",
28+
"PeriodicBC",
29+
"RobinBC",
30+
"IC",
31+
"Model",
32+
"saveplot",
33+
"apply",
34+
]

deepxde/data/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@
99
from .op_dataset import OpDataSet
1010
from .pde import PDE
1111
from .pde import TimePDE
12+
13+
14+
__all__ = [
15+
"DataSet",
16+
"Func",
17+
"FuncConstraint",
18+
"IDE",
19+
"MfDataSet",
20+
"MfFunc",
21+
"OpDataSet",
22+
"PDE",
23+
"TimePDE",
24+
]

deepxde/geometry/__init__.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,21 @@
1414
from .geometry_nd import Hypersphere
1515
from .timedomain import GeometryXTime
1616
from .timedomain import TimeDomain
17+
18+
19+
__all__ = [
20+
"CSGDifference",
21+
"CSGIntersection",
22+
"CSGUnion",
23+
"Interval",
24+
"Disk",
25+
"Polygon",
26+
"Rectangle",
27+
"Triangle",
28+
"Cuboid",
29+
"Sphere",
30+
"Hypercube",
31+
"Hypersphere",
32+
"GeometryXTime",
33+
"TimeDomain",
34+
]

deepxde/maps/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
from .mfnn import MfNN
55
from .opnn import OpNN
66
from .resnet import ResNet
7+
8+
9+
__all__ = ["FNN", "MfNN", "OpNN", "ResNet"]

0 commit comments

Comments
 (0)