Skip to content
Snippets Groups Projects
Commit e7396d79 authored by Ivan Kondov's avatar Ivan Kondov
Browse files

corrected highlighting

parent 486b5c19
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ Anatomy of Firetasks ...@@ -16,7 +16,7 @@ Anatomy of Firetasks
All firetasks are classes derived from the ``FiretaskBase`` class. Many built-in All firetasks are classes derived from the ``FiretaskBase`` class. Many built-in
Firetasks are available in the upstream FireWorks, such as the ``ScriptTask``, 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. generic and specific purposes.
The skeleton of a Firetask looks like this:: 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. ...@@ -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 The resulting workflow, which is given in **dataloader.json**, must be successfully
running with no further modifications. 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 JSON documents as list or dictionaries and then return a ``FWAction`` object
with ``update_spec`` and the structure (see above example). with ``update_spec`` and the structure (see above example).
...@@ -94,13 +94,13 @@ 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 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 script. The firetask should integrate into the workflow available in
**dataloader+repeater.json** without further adaptations. **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 ``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:: dynamically::
firework = Firework( firework = Firework(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment