Skip to content

Commit a9f91b6

Browse files
committed
fix documentation
1 parent b5ee3ea commit a9f91b6

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

docs/source/examples/06-distributed-post/01-distributed_delegate_to_server.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
},
178178
"outputs": [],
179179
"source": [
180-
"for i, ip in enumerate(ips):\n local_workflow.connect_with(remote_workflows[i], (\"out\", \"in\" + str(i)))\n\nfc = local_workflow.get_output(\"merged\", dpf.types.fields_container)\nprint(fc)\nprint(fc[0].min().data)\nprint(fc[0].max().data)"
180+
"for i, ip in enumerate(ips):\n local_workflow.connect_with(remote_workflows[i], (\"out\", \"in\" + str(i)))\n\nfc = local_workflow.get_output(\"merged\", dpf.types.fields_container)\nprint(fc)\nprint(fc[0].min().data)\nprint(fc[0].max().data)\n\ndpf.server.shutdown_all_session_servers()"
181181
]
182182
}
183183
],

docs/source/examples/06-distributed-post/01-distributed_delegate_to_server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@
9797
print(fc)
9898
print(fc[0].min().data)
9999
print(fc[0].max().data)
100+
101+
dpf.server.shutdown_all_session_servers()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
db17356b98e516a48cd163940039bc68
1+
f5894523c93ddb6f1cef3addcefdaaa3

docs/source/examples/06-distributed-post/01-distributed_delegate_to_server.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Print the ips and ports
143143
.. code-block:: none
144144
145145
ips: ['127.0.0.1', '127.0.0.1']
146-
ports: [50055, 50056]
146+
ports: [50057, 50058]
147147
148148
149149
@@ -221,7 +221,7 @@ Create a local workflow able to merge the results
221221
Connect the workflows together and get the output
222222
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
223223

224-
.. GENERATED FROM PYTHON SOURCE LINES 92-100
224+
.. GENERATED FROM PYTHON SOURCE LINES 92-102
225225
226226
.. code-block:: default
227227
@@ -234,6 +234,8 @@ Connect the workflows together and get the output
234234
print(fc[0].min().data)
235235
print(fc[0].max().data)
236236
237+
dpf.server.shutdown_all_session_servers()
238+
237239
238240
239241
@@ -252,14 +254,15 @@ Connect the workflows together and get the output
252254
253255
[0.]
254256
[10.03242272]
257+
("'NoneType' object has no attribute 'shutdown'",)
255258
256259
257260
258261
259262
260263
.. rst-class:: sphx-glr-timing
261264

262-
**Total running time of the script:** ( 0 minutes 1.843 seconds)
265+
**Total running time of the script:** ( 0 minutes 0.913 seconds)
263266

264267

265268
.. _sphx_glr_download_examples_06-distributed-post_01-distributed_delegate_to_server.py:
Binary file not shown.

docs/source/examples/06-distributed-post/sg_execution_times.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
Computation times
77
=================
8-
**00:01.843** total execution time for **examples_06-distributed-post** files:
8+
**00:00.913** total execution time for **examples_06-distributed-post** files:
99

1010
+--------------------------------------------------------------------------------------------------------------------------------------------+-----------+--------+
11-
| :ref:`sphx_glr_examples_06-distributed-post_01-distributed_delegate_to_server.py` (``01-distributed_delegate_to_server.py``) | 00:01.843 | 0.0 MB |
11+
| :ref:`sphx_glr_examples_06-distributed-post_01-distributed_delegate_to_server.py` (``01-distributed_delegate_to_server.py``) | 00:00.913 | 0.0 MB |
1212
+--------------------------------------------------------------------------------------------------------------------------------------------+-----------+--------+
1313
| :ref:`sphx_glr_examples_06-distributed-post_00-distributed_total_disp.py` (``00-distributed_total_disp.py``) | 00:00.000 | 0.0 MB |
1414
+--------------------------------------------------------------------------------------------------------------------------------------------+-----------+--------+

0 commit comments

Comments
 (0)