Skip to content

Commit d7e37d4

Browse files
committed
Update to v0.9.9
1 parent fd2996c commit d7e37d4

File tree

70 files changed

+412
-227
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+412
-227
lines changed

atomate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.9.8"
1+
__version__ = "0.9.9"

docs/_sources/atomate.vasp.firetasks.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ Subpackages
1212
Submodules
1313
----------
1414

15+
atomate.vasp.firetasks.electrode\_tasks module
16+
----------------------------------------------
17+
18+
.. automodule:: atomate.vasp.firetasks.electrode_tasks
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
1523
atomate.vasp.firetasks.exchange module
1624
--------------------------------------
1725

docs/_sources/atomate.vasp.workflows.base.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ atomate.vasp.workflows.base.elastic module
4444
:undoc-members:
4545
:show-inheritance:
4646

47+
atomate.vasp.workflows.base.electrode module
48+
--------------------------------------------
49+
50+
.. automodule:: atomate.vasp.workflows.base.electrode
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
4755
atomate.vasp.workflows.base.exchange module
4856
-------------------------------------------
4957

docs/_sources/atomate.vasp.workflows.tests.rst.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ atomate.vasp.workflows.tests.test\_ferroelectric\_workflow module
4444
:undoc-members:
4545
:show-inheritance:
4646

47+
atomate.vasp.workflows.tests.test\_insertion\_workflow module
48+
-------------------------------------------------------------
49+
50+
.. automodule:: atomate.vasp.workflows.tests.test_insertion_workflow
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
4755
atomate.vasp.workflows.tests.test\_lobster\_workflow module
4856
-----------------------------------------------------------
4957

docs/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '0.9.8',
3+
VERSION: '0.9.9',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/advanced_stores.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Advanced Storage Stratagies &#8212; atomate 0.9.8 documentation</title>
8+
<title>Advanced Storage Stratagies &#8212; atomate 0.9.9 documentation</title>
99
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -28,7 +28,7 @@ <h3>Navigation</h3>
2828
<li class="right" >
2929
<a href="py-modindex.html" title="Python Module Index"
3030
>modules</a> |</li>
31-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
31+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
3232
<li class="nav-item nav-item-this"><a href="">Advanced Storage Stratagies</a></li>
3333
</ul>
3434
</div>
@@ -151,7 +151,7 @@ <h3>Navigation</h3>
151151
<li class="right" >
152152
<a href="py-modindex.html" title="Python Module Index"
153153
>modules</a> |</li>
154-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
154+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
155155
<li class="nav-item nav-item-this"><a href="">Advanced Storage Stratagies</a></li>
156156
</ul>
157157
</div>

docs/atomate.common.firetasks.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>atomate.common.firetasks package &#8212; atomate 0.9.8 documentation</title>
8+
<title>atomate.common.firetasks package &#8212; atomate 0.9.9 documentation</title>
99
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -28,7 +28,7 @@ <h3>Navigation</h3>
2828
<li class="right" >
2929
<a href="py-modindex.html" title="Python Module Index"
3030
>modules</a> |</li>
31-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
31+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
3232
<li class="nav-item nav-item-this"><a href="">atomate.common.firetasks package</a></li>
3333
</ul>
3434
</div>
@@ -777,7 +777,7 @@ <h3>Navigation</h3>
777777
<li class="right" >
778778
<a href="py-modindex.html" title="Python Module Index"
779779
>modules</a> |</li>
780-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
780+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
781781
<li class="nav-item nav-item-this"><a href="">atomate.common.firetasks package</a></li>
782782
</ul>
783783
</div>

docs/atomate.common.firetasks.tests.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>atomate.common.firetasks.tests package &#8212; atomate 0.9.8 documentation</title>
8+
<title>atomate.common.firetasks.tests package &#8212; atomate 0.9.9 documentation</title>
99
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -28,7 +28,7 @@ <h3>Navigation</h3>
2828
<li class="right" >
2929
<a href="py-modindex.html" title="Python Module Index"
3030
>modules</a> |</li>
31-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
31+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
3232
<li class="nav-item nav-item-this"><a href="">atomate.common.firetasks.tests package</a></li>
3333
</ul>
3434
</div>
@@ -160,7 +160,7 @@ <h3>Navigation</h3>
160160
<li class="right" >
161161
<a href="py-modindex.html" title="Python Module Index"
162162
>modules</a> |</li>
163-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
163+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
164164
<li class="nav-item nav-item-this"><a href="">atomate.common.firetasks.tests package</a></li>
165165
</ul>
166166
</div>

docs/atomate.common.html

Lines changed: 146 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>atomate.common package &#8212; atomate 0.9.8 documentation</title>
8+
<title>atomate.common package &#8212; atomate 0.9.9 documentation</title>
99
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
1010
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
1111
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
@@ -28,7 +28,7 @@ <h3>Navigation</h3>
2828
<li class="right" >
2929
<a href="py-modindex.html" title="Python Module Index"
3030
>modules</a> |</li>
31-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
31+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
3232
<li class="nav-item nav-item-this"><a href="">atomate.common package</a></li>
3333
</ul>
3434
</div>
@@ -64,7 +64,7 @@ <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to thi
6464
</li>
6565
<li class="toctree-l1"><a class="reference internal" href="atomate.common.tests.html">atomate.common.tests package</a><ul>
6666
<li class="toctree-l2"><a class="reference internal" href="atomate.common.tests.html#submodules">Submodules</a></li>
67-
<li class="toctree-l2"><a class="reference internal" href="atomate.common.tests.html#module-atomate.common.tests.test_powerups">atomate.common.tests.test_powerups module</a></li>
67+
<li class="toctree-l2"><a class="reference internal" href="atomate.common.tests.html#atomate-common-tests-test-powerups-module">atomate.common.tests.test_powerups module</a></li>
6868
<li class="toctree-l2"><a class="reference internal" href="atomate.common.tests.html#module-atomate.common.tests">Module contents</a></li>
6969
</ul>
7070
</li>
@@ -77,6 +77,148 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
7777
<div class="section" id="module-atomate.common.powerups">
7878
<span id="atomate-common-powerups-module"></span><h2>atomate.common.powerups module<a class="headerlink" href="#module-atomate.common.powerups" title="Permalink to this headline"></a></h2>
7979
<p>This module defines general powerups that can be used for all workflows</p>
80+
<dl class="py function">
81+
<dt id="atomate.common.powerups.add_additional_fields_to_taskdocs">
82+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">add_additional_fields_to_taskdocs</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span></em>, <em class="sig-param"><span class="n">update_dict</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">task_name_constraint</span><span class="o">=</span><span class="default_value">'ToDb'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.add_additional_fields_to_taskdocs" title="Permalink to this definition"></a></dt>
83+
<dd><p>For all XXToDbTasks in a given workflow, add information to
84+
“additional_fields” to be placed in the task doc.</p>
85+
<dl class="simple">
86+
<dt>Args:</dt><dd><p>original_wf (Workflow)
87+
update_dict (Dict): dictionary to add additional_fields
88+
task_name_constraint (str): name of the Firetasks to be modified.</p>
89+
</dd>
90+
<dt>Returns:</dt><dd><p>Workflow</p>
91+
</dd>
92+
</dl>
93+
</dd></dl>
94+
95+
<dl class="py function">
96+
<dt id="atomate.common.powerups.add_namefile">
97+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">add_namefile</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span></em>, <em class="sig-param"><span class="n">use_slug</span><span class="o">=</span><span class="default_value">True</span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.add_namefile" title="Permalink to this definition"></a></dt>
98+
<dd><p>Every FireWork begins by writing an empty file with the name
99+
“FW–&lt;fw.name&gt;”. This makes it easy to figure out what jobs are in what
100+
launcher directories, e.g. “ls -l launch*/FW–<a href="#id1"><span class="problematic" id="id2">*</span></a>” from within a “block” dir.</p>
101+
<dl class="simple">
102+
<dt>Args:</dt><dd><p>original_wf (Workflow)
103+
use_slug (bool): whether to replace whitespace-type chars with a slug</p>
104+
</dd>
105+
<dt>Returns:</dt><dd><p>Workflow</p>
106+
</dd>
107+
</dl>
108+
</dd></dl>
109+
110+
<dl class="py function">
111+
<dt id="atomate.common.powerups.add_priority">
112+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">add_priority</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span></em>, <em class="sig-param"><span class="n">root_priority</span></em>, <em class="sig-param"><span class="n">child_priority</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.add_priority" title="Permalink to this definition"></a></dt>
113+
<dd><p>Adds priority to a workflow</p>
114+
<dl>
115+
<dt>Args:</dt><dd><p>original_wf (Workflow): original WF
116+
root_priority (int): priority of first (root) job(s)
117+
child_priority(int): priority of all child jobs. Defaults to</p>
118+
<blockquote>
119+
<div><p>root_priority</p>
120+
</div></blockquote>
121+
</dd>
122+
<dt>Returns:</dt><dd><p>Workflow: priority-decorated workflow</p>
123+
</dd>
124+
</dl>
125+
</dd></dl>
126+
127+
<dl class="py function">
128+
<dt id="atomate.common.powerups.add_tags">
129+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">add_tags</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span></em>, <em class="sig-param"><span class="n">tags_list</span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.add_tags" title="Permalink to this definition"></a></dt>
130+
<dd><p>Adds tags to all Fireworks in the Workflow, WF metadata, as well as
131+
additional_fields for the Drone to track them later (e.g. tag all fireworks
132+
and tasks related to a specific research project).</p>
133+
<p>Tags are written to the “_spec” key of each Firework in the workflow and
134+
to the “metadata.tags” key of each Workflow. If the workflow contains any
135+
Firetasks ending in “ToDb”, e.g. VaspToDb, QChemToDb, etc., then the tags
136+
are also passed as “additional_fields” to these tasks and included in the
137+
resulting task documents.</p>
138+
<dl class="simple">
139+
<dt>Args:</dt><dd><p>original_wf (Workflow)
140+
tags_list: list of tags parameters (list of strings)</p>
141+
</dd>
142+
<dt>Returns:</dt><dd><p>Workflow</p>
143+
</dd>
144+
</dl>
145+
</dd></dl>
146+
147+
<dl class="py function">
148+
<dt id="atomate.common.powerups.powerup_by_kwargs">
149+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">powerup_by_kwargs</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span><span class="p">:</span> <span class="n">fireworks.core.firework.Workflow</span></em>, <em class="sig-param"><span class="n">powerup_dicts</span><span class="p">:</span> <span class="n">List<span class="p">[</span><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.9)">dict</a><span class="p">]</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.powerup_by_kwargs" title="Permalink to this definition"></a></dt>
150+
<dd><p>apply powerups in the form using a list of dictionaries
151+
[</p>
152+
<blockquote>
153+
<div><p>{“powerup_name” : powerup_function1, “kwargs”: {parameter1 : value1, parameter2: value2}},
154+
{“powerup_name” : powerup_function2, “kwargs”: {parameter1 : value1, parameter2: value2}},</p>
155+
</div></blockquote>
156+
<p>]</p>
157+
<dl>
158+
<dt>As an example:</dt><dd><dl class="simple">
159+
<dt>power_up_by_kwargs([</dt><dd><dl class="simple">
160+
<dt>{“powerup_name”<span class="classifier">“add_additional_fields_to_taskdocs”,</span></dt><dd><p>“kwargs: {“update_dict” : {“foo” : “bar”}}}
161+
]</p>
162+
</dd>
163+
</dl>
164+
</dd>
165+
</dl>
166+
<p>)</p>
167+
</dd>
168+
<dt>Args:</dt><dd><p>original_wf: workflow that will be changed
169+
powerup_dicts: dictionary containing the powerup_name and kwarg.</p>
170+
<blockquote>
171+
<div><p>if “.” is present in the name it will be imported as a full path
172+
if not we will use standard atomate modules where the powerups are kept</p>
173+
</div></blockquote>
174+
</dd>
175+
</dl>
176+
</dd></dl>
177+
178+
<dl class="py function">
179+
<dt id="atomate.common.powerups.preserve_fworker">
180+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">preserve_fworker</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span></em>, <em class="sig-param"><span class="n">fw_name_constraint</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.preserve_fworker" title="Permalink to this definition"></a></dt>
181+
<dd><p>set _preserve_fworker spec of Fireworker(s) of a Workflow. Can be used to
182+
pin a workflow to the first fworker it is run with. Very useful when running
183+
on multiple machines that can’t share files. fw_name_constraint can be used
184+
to only preserve fworker after a certain point where file passing becomes
185+
important</p>
186+
<dl class="simple">
187+
<dt>Args:</dt><dd><p>original_wf (Workflow):
188+
fw_name_constraint (str): name of the Fireworks to be tagged (all if
189+
None is passed)</p>
190+
</dd>
191+
<dt>Returns:</dt><dd><p>Workflow: modified workflow with specified Fireworkers tagged</p>
192+
</dd>
193+
</dl>
194+
</dd></dl>
195+
196+
<dl class="py function">
197+
<dt id="atomate.common.powerups.set_execution_options">
198+
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">set_execution_options</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span></em>, <em class="sig-param"><span class="n">fworker_name</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">category</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">fw_name_constraint</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">task_name_constraint</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#atomate.common.powerups.set_execution_options" title="Permalink to this definition"></a></dt>
199+
<dd><p>set _fworker spec of Fireworker(s) of a Workflow. It can be used to specify
200+
a queue; e.g. run large-memory jobs on a separate queue.</p>
201+
<dl>
202+
<dt>Args:</dt><dd><p>original_wf (Workflow):
203+
fworker_name (str): user-defined tag to be added under fw.spec._fworker</p>
204+
<blockquote>
205+
<div><p>e.g. “large memory”, “big”, etc</p>
206+
</div></blockquote>
207+
<p>category (str): category of FWorker that should pul job
208+
fw_name_constraint (str): name of the Fireworks to be tagged (all if</p>
209+
<blockquote>
210+
<div><p>None is passed)</p>
211+
</div></blockquote>
212+
<dl class="simple">
213+
<dt>task_name_constraint (str): name of the Firetasks to be tagged (e.g.</dt><dd><p>None or ‘RunVasp’)</p>
214+
</dd>
215+
</dl>
216+
</dd>
217+
<dt>Returns:</dt><dd><p>Workflow: modified workflow with specified Fireworkers tagged</p>
218+
</dd>
219+
</dl>
220+
</dd></dl>
221+
80222
<dl class="py function">
81223
<dt id="atomate.common.powerups.set_queue_adapter">
82224
<code class="sig-prename descclassname">atomate.common.powerups.</code><code class="sig-name descname">set_queue_adapter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">original_wf</span><span class="p">:</span> <span class="n">fireworks.core.firework.Workflow</span></em>, <em class="sig-param"><span class="n">queueadapter</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.9)">dict</a></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">fw_name_constraint</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.9)">str</a></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">task_name_constraint</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.9)">str</a></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span> &#x2192; fireworks.core.firework.Workflow<a class="headerlink" href="#atomate.common.powerups.set_queue_adapter" title="Permalink to this definition"></a></dt>
@@ -146,7 +288,7 @@ <h3>Navigation</h3>
146288
<li class="right" >
147289
<a href="py-modindex.html" title="Python Module Index"
148290
>modules</a> |</li>
149-
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.8 documentation</a> &#187;</li>
291+
<li class="nav-item nav-item-0"><a href="index.html">atomate 0.9.9 documentation</a> &#187;</li>
150292
<li class="nav-item nav-item-this"><a href="">atomate.common package</a></li>
151293
</ul>
152294
</div>

0 commit comments

Comments
 (0)