Skip to content

Commit 22d654d

Browse files
authored
Merge pull request #1168 from Libensemble/fix/simple_tutorial
Fix Ensemble instantiation and lines beneath if name == main in tutorial
2 parents 8df25b5 + 70b1bf8 commit 22d654d

13 files changed

Lines changed: 283 additions & 323 deletions

docs/examples/calling_scripts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Local Sine Tutorial
1616
This example is from the Local Sine :doc:`Tutorial<../tutorials/local_sine_tutorial>`,
1717
meant to run with Python's multiprocessing as the primary ``comms`` method.
1818

19-
.. literalinclude:: ../../examples/tutorials/simple_sine/tutorial_calling.py
19+
.. literalinclude:: ../../examples/tutorials/simple_sine/calling.py
2020
:language: python
21-
:caption: examples/tutorials/simple_sine/tutorial_calling.py
21+
:caption: examples/tutorials/simple_sine/calling.py
2222
:linenos:
2323
:emphasize-lines: 8-28
2424

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sphinx<8
22
sphinxcontrib-bibtex
3-
autodoc_pydantic
3+
autodoc_pydantic<2
44
sphinx-design
55
numpy
66
sphinx_rtd_theme>1

docs/tutorials/executor_forces_tutorial.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Assuming MPI and its C compiler ``mpicc`` are available, compile
2828

2929
.. code-block:: bash
3030
31-
$ mpicc -O3 -o forces.x forces.c -lm
31+
mpicc -O3 -o forces.x forces.c -lm
3232
3333
Alternative build lines for different platforms can be found in the ``build_forces.sh``
3434
file in the same directory.
@@ -321,7 +321,7 @@ This completes our calling script and simulation function. Run libEnsemble with:
321321

322322
.. code-block:: bash
323323
324-
$ python run_libe_forces.py --comms local --nworkers [nworkers]
324+
python run_libe_forces.py --comms local --nworkers [nworkers]
325325
326326
where ``nworkers`` is one more than the number of concurrent simulations.
327327

@@ -336,7 +336,7 @@ and ``ensemble.log`` as usual.
336336

337337
.. code-block:: bash
338338
339-
$ python run_libe_forces.py --comms local --nworkers 3
339+
python run_libe_forces.py --comms local --nworkers 3
340340
341341
my ``libE_stats.txt`` resembled::
342342

0 commit comments

Comments
 (0)