Skip to content

Commit ff2fcc1

Browse files
remove unused import types
1 parent de42263 commit ff2fcc1

File tree

14 files changed

+9
-26
lines changed

14 files changed

+9
-26
lines changed

docs/zh/examples/cylinder2d_unsteady.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,18 @@ geom = {
161161
ppsci.geometry.PointCloud(
162162
reader.load_csv_file(
163163
"./datasets/domain_train.csv",
164-
["x", "y"],
164+
("x", "y"),
165165
alias_dict={"x": "Points:0", "y": "Points:1"},
166166
),
167-
["x", "y"],
167+
("x", "y"),
168168
),
169169
),
170170
"time_rect_eval": ppsci.geometry.PointCloud(
171171
reader.load_csv_file(
172172
"./datasets/domain_eval.csv",
173-
["t", "x", "y"],
173+
("t", "x", "y"),
174174
),
175-
["t", "x", "y"],
175+
("t", "x", "y"),
176176
),
177177
}
178178
```
@@ -375,17 +375,17 @@ examples/cylinder/2d_unsteady/cylinder2d_unsteady_Re100.py:182:198
375375

376376
``` py linenums="200"
377377
--8<--
378-
examples/cylinder/2d_unsteady/cylinder2d_unsteady_Re100.py:200:211
378+
examples/cylinder/2d_unsteady/cylinder2d_unsteady_Re100.py:200:212
379379
--8<--
380380
```
381381

382382
### 3.9 模型训练、评估与可视化
383383

384384
完成上述设置之后,只需要将上述实例化的对象按顺序传递给 `ppsci.solver.Solver`,然后启动训练、评估、可视化。
385385

386-
``` py linenums="213"
386+
``` py linenums="214"
387387
--8<--
388-
examples/cylinder/2d_unsteady/cylinder2d_unsteady_Re100.py:213:
388+
examples/cylinder/2d_unsteady/cylinder2d_unsteady_Re100.py:214:
389389
--8<--
390390
```
391391

examples/cylinder/2d_unsteady/cylinder2d_unsteady_Re100.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from ppsci.utils import reader
2121

2222
if __name__ == "__main__":
23-
# fluid.core.set_prim_eager_enabled(True)
2423
args = config.parse_args()
2524
# set random seed for reproducibility
2625
ppsci.utils.misc.set_random_seed(42)

ppsci/constraint/boundary_constraint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Any
1716
from typing import Callable
1817
from typing import Dict

ppsci/constraint/initial_constraint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Any
1716
from typing import Callable
1817
from typing import Dict

ppsci/constraint/integral_constraint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Any
1716
from typing import Callable
1817
from typing import Dict

ppsci/constraint/interior_constraint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Any
1716
from typing import Callable
1817
from typing import Dict

ppsci/constraint/periodic_constraint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Any
1716
from typing import Callable
1817
from typing import Dict

ppsci/data/dataset/csv_dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Callable
1716
from typing import Dict
1817
from typing import Optional

ppsci/data/dataset/mat_dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import types
1615
from typing import Callable
1716
from typing import Dict
1817
from typing import Optional

ppsci/geometry/pointcloud.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
from typing import Dict
1616
from typing import Optional
1717
from typing import Tuple
18-
from typing import Union
1918

2019
import numpy as np
2120

2221
import ppsci.utils.misc as misc
2322
from ppsci.geometry import geometry
24-
from ppsci.utils import reader
2523

2624

2725
class PointCloud(geometry.Geometry):

0 commit comments

Comments
 (0)