Skip to content

Commit

Permalink
Update to v1.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
computron committed Mar 8, 2021
1 parent d35ec50 commit 1cb78cf
Show file tree
Hide file tree
Showing 126 changed files with 1,263 additions and 982 deletions.
2 changes: 2 additions & 0 deletions docs/_sources/changelog.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
FireWorks Changelog
===================

.. caution:: Starting v1.9.7 onwards, the changelog is no longer maintained. Please check the Github commit log for a record of changes.

**v1.9.6**

* avoid checking the number of jobs in the queue if not needed (G. Petretto)
Expand Down
2 changes: 2 additions & 0 deletions docs/_sources/contributors.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Contributors
============

.. caution:: Starting v1.9.7 onwards, the contributors list is no longer maintained. Please check the Github contributors list instead.

FireWorks was developed primarily by Anubhav Jain at Lawrence Berkeley National Lab, using research funding from Kristin Persson for the `Materials Project <http://www.materialsproject.org>`_.

Additional contributions from:
Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.core.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ fireworks.core.rocket\_launcher module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.core.tests.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ fireworks.core.tests.test\_tracker module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fireworks.examples.custom\_firetasks.hello\_world.hello\_world\_task module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ fireworks.examples.custom\_firetasks.merge\_task.merge\_task module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.examples.tutorial_examples.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ fireworks.examples.tutorial\_examples.workflows module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.features.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ fireworks.features.stats module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.features.tests.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ fireworks.features.tests.test\_introspect module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.flask_site.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fireworks.flask\_site.util module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.queue.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ fireworks.queue.queue\_launcher module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ fireworks.fw\_config module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.scripts.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fireworks.scripts.rlaunch\_run module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.tests.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ fireworks.tests.test\_workflow module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.user_objects.dupefinders.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ fireworks.user\_objects.dupefinders.dupefinder\_exact module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.user_objects.firetasks.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ fireworks.user\_objects.firetasks.unittest\_tasks module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ fireworks.user\_objects.firetasks.tests.test\_templatewriter\_task module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ fireworks.user\_objects.queue\_adapters.pbs\_newt\_adapter module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ fireworks.user\_objects.queue\_adapters.tests.test\_common\_adapter module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.utilities.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ fireworks.utilities.update\_collection module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 0 additions & 1 deletion docs/_sources/fireworks.utilities.tests.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fireworks.utilities.tests.test\_update\_collection module
:undoc-members:
:show-inheritance:


Module contents
---------------

Expand Down
1 change: 1 addition & 0 deletions docs/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ Misc
qadapter_programming
update_text
filepad_tutorial
json_schema

Reference
=========
Expand Down
79 changes: 79 additions & 0 deletions docs/_sources/json_schema.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
=================
Using JSON Schema
=================

.. note:: If you only use FireWorks with Python and provide your fireworks and workflows in Python only (not in YAML or JSON) you might want to skip this topic.

Why should I use JSON schema?
=============================

The input for FireWorks is often provided in JSON and YAML and generated by
third-party software that is unaware of the valid data types in FireWorks. Latent
mismatches of data types may produce run-time errors, such as missing keywords
or wrong data types, that are more difficult to handle than a validation of the
initial input.

JSON schema provides a formal human- and machine-readable description of
the data types used in classes in FireWorks. Additionally, a function is provided
that checks the validity of JSON and YAML inputs immediately before deserialization.

To use the schema the `fireworks_schema` package must be installed.

There are three ways to activate JSON schema validation:

* Call the schema validator explicitly
* Activate automatic schema validation
* Modify the list of classes for automatic validation


Call the schema validator explicitly
====================================

This is the case when you use Python but read JSON/YAML serialized objects
provided externally. In the following example, a serialized workflow object is
loaded from a YAML file and validated against the Workflow schema:

.. code-block:: python
import yaml
import fireworks_schema
from fireworks import Workflow
with open('empty_fws.yaml', 'rt') as yf:
dct = yaml.safe_load(yf)
fireworks_schema.validate(dct, 'Workflow')
wf = Workflow.from_dict(dct)
Activate automatic schema validation
====================================

To activate automatic schema validation you must specify:

.. code-block:: yaml
JSON_SCHEMA_VALIDATE: true
in your FWConfig file. For more details about managing your FWConfig file see the
:doc:`FW Config tutorial <config_tutorial>`.

The default value of ``JSON_SCHEMA_VALIDATE`` is ``false``.

If automatic validation is turned on, i.e. ``JSON_SCHEMA_VALIDATE`` is ``true``,
then validation is performed only for built-in classes specified in the list
``JSON_SCHEMA_VALIDATE_LIST``, whenever an object of these
classes is loaded from file. You can find the default
``JSON_SCHEMA_VALIDATE_LIST`` in ``fw_config.py`` file in the FireWorks source.


Modify the list of classes for automatic validation
===================================================

You can modify the default ``JSON_SCHEMA_VALIDATE_LIST`` in your FWConfig file.
For example, to turn on automatic validation for serialized ``Firework`` and
``Workflow`` objects only:

.. code-block:: yaml
JSON_SCHEMA_VALIDATE: true
JSON_SCHEMA_VALIDATE_LIST: [Firework, Workflow]
4 changes: 2 additions & 2 deletions docs/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

pre, div[class|="highlight"] {
pre, div[class*="highlight-"] {
clear: both;
}

Expand All @@ -704,7 +704,7 @@ span.pre {
hyphens: none;
}

div[class^="highlight-"] {
div[class*="highlight-"] {
margin: 1em 0;
}

Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '1.9.6',
VERSION: '1.9.7',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
7 changes: 6 additions & 1 deletion docs/_static/pygments.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
pre { line-height: 125%; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #eeffcc; }
.highlight { background: #eeffcc; }
.highlight .c { color: #408090; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
Expand Down
3 changes: 1 addition & 2 deletions docs/_static/searchtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ var Search = {
objectterms.push(tmp[i].toLowerCase());
}

if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i].match(/^\d+$/) ||
tmp[i] === "") {
if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i] === "") {
// skip this "word"
continue;
}
Expand Down
10 changes: 5 additions & 5 deletions docs/backgroundtask.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Running Tasks in the Background &#8212; FireWorks 1.9.6 documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Running Tasks in the Background &#8212; FireWorks 1.9.7 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="duplicates_tutorial.html" title="Handling Duplicates Automatically"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Running Tasks in the Background</a></li>
</ul>
</div>
Expand Down Expand Up @@ -188,14 +188,14 @@ <h3>Navigation</h3>
<li class="right" >
<a href="duplicates_tutorial.html" title="Handling Duplicates Automatically"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Running Tasks in the Background</a></li>
</ul>
</div>

<div class="footer" role="contentinfo">
&#169; Copyright 2013, Anubhav Jain.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.1.2.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
10 changes: 5 additions & 5 deletions docs/basesite_tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Using the Web GUI &#8212; FireWorks 1.9.6 documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Using the Web GUI &#8212; FireWorks 1.9.7 documentation</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -36,7 +36,7 @@ <h3>Navigation</h3>
<li class="right" >
<a href="query_tutorial.html" title="Querying FireWorks and Workflows / Generating Reports"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Using the Web GUI</a></li>
</ul>
</div>
Expand Down Expand Up @@ -154,14 +154,14 @@ <h3>Navigation</h3>
<li class="right" >
<a href="query_tutorial.html" title="Querying FireWorks and Workflows / Generating Reports"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.6 documentation</a> &#187;</li>
<li class="nav-item nav-item-0"><a href="index.html">FireWorks 1.9.7 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Using the Web GUI</a></li>
</ul>
</div>

<div class="footer" role="contentinfo">
&#169; Copyright 2013, Anubhav Jain.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.1.2.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down
Loading

0 comments on commit 1cb78cf

Please sign in to comment.