From e7396d79c5deeb8a234f98ce2245679c73e4a72a Mon Sep 17 00:00:00 2001 From: "ivan.kondov" <ivan.kondov@kit.edu> Date: Mon, 17 Jul 2017 13:05:58 +0200 Subject: [PATCH] corrected highlighting --- docs/exercise5.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/exercise5.rst b/docs/exercise5.rst index affaf23..091c3b6 100644 --- a/docs/exercise5.rst +++ b/docs/exercise5.rst @@ -16,7 +16,7 @@ Anatomy of Firetasks All firetasks are classes derived from the ``FiretaskBase`` class. Many built-in Firetasks are available in the upstream FireWorks, such as the ``ScriptTask``, -``PyTask``, FileTransferTask. Additional firetasks can be written for both +``PyTask``, ``FileTransferTask``. Additional firetasks can be written for both generic and specific purposes. The skeleton of a Firetask looks like this:: @@ -86,7 +86,7 @@ If necessary the input data structure can be split into more than one file. The resulting workflow, which is given in **dataloader.json**, must be successfully running with no further modifications. -**Hint**: You can use the ``load()`` method from the ``json`` package to load +**Hint:** You can use the ``load()`` method from the ``json`` package to load JSON documents as list or dictionaries and then return a ``FWAction`` object with ``update_spec`` and the structure (see above example). @@ -94,13 +94,13 @@ with ``update_spec`` and the structure (see above example). Problem 5.2: Conditional Repeater Task -------------------------------------- -Write a RepeatIfLengthLesser firetask that can implement the while loop in the +Write a ``RepeatIfLengthLesser`` firetask that can implement the while loop in the script. The firetask should integrate into the workflow available in **dataloader+repeater.json** without further adaptations. -Hint: You can use the ``load_object`` function from +**Hint:** You can use the ``load_object`` function from ``fireworks.utilities.fw_serializers`` to construct a firework object and -the ``detours`` keyword argument of ``FWAction`` `to insert the firework +the ``detours`` keyword argument of ``FWAction`` to insert the firework dynamically:: firework = Firework( -- GitLab