Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grk2450-fireworks-tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ivan Kondov
grk2450-fireworks-tutorial
Commits
e7396d79
Commit
e7396d79
authored
7 years ago
by
Ivan Kondov
Browse files
Options
Downloads
Patches
Plain Diff
corrected highlighting
parent
486b5c19
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/exercise5.rst
+5
-5
5 additions, 5 deletions
docs/exercise5.rst
with
5 additions
and
5 deletions
docs/exercise5.rst
+
5
−
5
View file @
e7396d79
...
...
@@ -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(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment