Skip to content

Commit 069ad28

Browse files
committed
Update requirements to fix RTD build
1 parent c057b79 commit 069ad28

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/pages/2020_Intro_Week/sections/workflows_adv.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ They consist of two parts: a positive integer, called the exit status, and a mes
1818
If the exit status is zero, which is the default, the process is said to have terminated nominally and *finished successfully*.
1919
A non-zero exit status is often used to communicate that there was some kind of a problem during the execution of the process and in that case it is said to be *failed*.
2020
However, the severity of the problem can vary and a non-zero exit status can also be used to just give a warning and does not necessarily mean the process suffered a critical error.
21-
Still, in AiiDA, a non-zero exit status technically marks a process as failed and the :meth:`~aiida.orm.nodes.process.ProcessNode.is_failed` property will return `True`.
21+
Still, in AiiDA, a non-zero exit status technically marks a process as failed and the `~aiida.orm.nodes.process.ProcessNode.is_failed`` property will return `True`.
2222

23-
Exit codes can be defined using the :meth:`~aiida.engine.processes.process_spec.ProcessSpec.exit_code` method during the process specification in the :meth:`~aiida.engine.processes.process.Process.define` method.
23+
Exit codes can be defined using the :meth:`~aiida.engine.processes.process_spec.ProcessSpec.exit_code` method during the process specification in the `~aiida.engine.processes.process.Process.define` method.
2424
It takes three arguments: the exit status, an exit label for easy reference and the exit message.
2525
Take the ``MultiplyAddWorkChain`` as an example:
2626

@@ -362,7 +362,7 @@ To "register" a process handler for a base restart work chain implementation, yo
362362
363363
The method name can be anything as long as it is a valid Python method name and does not overlap with one of the base work chain's methods.
364364
For better readability, it is, however, recommended to have the method name start with ``handle_``.
365-
In this example, we want to specifically check for a particular failure mode of the ``ArithmeticAddCalculation``, so we compare the :meth:`~aiida.orm.nodes.process.process.ProcessNode.exit_status` of the node with that of the spec of the process.
365+
In this example, we want to specifically check for a particular failure mode of the ``ArithmeticAddCalculation``, so we compare the `~aiida.orm.nodes.process.process.ProcessNode.exit_status` of the node with that of the spec of the process.
366366
If the exit code matches, we know that the problem was due to the sum being negative.
367367
Fixing this fictitious problem for this example is as simple as making sure that the inputs are all positive, which we can do by taking the absolute value of them.
368368
We assign the new values to the ``self.ctx.inputs`` just as where we defined the original inputs in the ``setup`` step.

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx~=2.4.3
1+
sphinx~=3.0
22
sphinx-rtd-theme~=0.5
33
sphinx-copybutton~=0.2.12
44
sphinx-panels~=0.4.1
@@ -10,6 +10,6 @@ pre-commit>=1.16,<2
1010
pylint==2.4.4
1111
yapf==0.27.0
1212
# transifex
13-
sphinx-intl==2.0.0
14-
transifex-client==0.13.7
15-
six==1.12.0
13+
sphinx-intl>=2.0.0
14+
transifex-client>=0.13.7
15+
six>=1.12.0

0 commit comments

Comments
 (0)