Skip to content

Commit 9630956

Browse files
fix docstring
1 parent b0b1a7e commit 9630956

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

docs/zh/api/utils/writer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Utils.reader(文件保存函数) 模块
1+
# Utils.writer(文件保存函数) 模块
22

3-
::: ppsci.utils.reader
3+
::: ppsci.utils.writer
44
handler: python
55
options:
66
members:

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ nav:
9999
- ppsci.utils.logger: zh/api/utils/logger.md
100100
- ppsci.utils.misc: zh/api/utils/misc.md
101101
- ppsci.utils.reader: zh/api/utils/reader.md
102+
- ppsci.utils.writer: zh/api/utils/writer.md
102103
- ppsci.utils.save_load: zh/api/utils/save_load.md
103104
- ppsci.utils.symbolic: zh/api/utils/symbolic.md
104105
- ppsci.validate: zh/api/validate.md

ppsci/utils/writer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def save_csv_file(
6868
... delimiter=",",
6969
... encoding="utf-8",
7070
... )
71+
7172
>>> # == test.csv ==
7273
>>> # A,B
7374
>>> # 1,4.12
@@ -141,6 +142,7 @@ def save_tecplot_file(
141142
... alias_dict={"X": "x", "Y": "y"},
142143
... num_timestamps=3,
143144
... )
145+
144146
>>> # == test_t-0.tec ==
145147
>>> # title="./test_t-0.tec"
146148
>>> # variables = "X", "Y"

0 commit comments

Comments
 (0)