Skip to content

Commit

Permalink
Update documentation for one-liners
Browse files Browse the repository at this point in the history
  • Loading branch information
ghadialhajj committed Apr 2, 2022
1 parent e5c8566 commit 1698857
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 2 deletions.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/specify_with_code.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions docs/_sources/specify_with_code.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ The general structure of the YAML file would look like this:
⋮(other optional arguments)
name_of_node3:
function: function_name(*args, **kwargs) # This is another way of defining a function, without separately defining the arguments.
name_of_node4: function_name(*args, **kwargs) # Another way if you want to specify only the function of a Node node, with the other arguments being their default values.
instructions:
simulation:
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/source/specify_with_code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ The general structure of the YAML file would look like this:
⋮(other optional arguments)
name_of_node3:
function: function_name(*args, **kwargs) # This is another way of defining a function, without separately defining the arguments.
name_of_node4: function_name(*args, **kwargs) # Another way if you want to specify only the function of a Node node, with the other arguments being their default values.
instructions:
simulation:
Expand Down
1 change: 1 addition & 0 deletions docs/specify_with_code.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ <h2>How to specify a simulation using YAML<a class="headerlink" href="#how-to-sp
<span class="l l-Scalar l-Scalar-Plain">⋮(other optional arguments)</span>
<span class="nt">name_of_node3</span><span class="p">:</span>
<span class="nt">function</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">function_name(*args, **kwargs)</span> <span class="c1"># This is another way of defining a function, without separately defining the arguments.</span>
<span class="nt">name_of_node4</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">function_name(*args, **kwargs)</span> <span class="c1"># Another way if you want to specify only the function of a Node node, with the other arguments being their default values.</span>

<span class="nt">instructions</span><span class="p">:</span>
<span class="nt">simulation</span><span class="p">:</span>
Expand Down
1 change: 0 additions & 1 deletion test/util/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def test_basic_one_liner_parsing(self):
self.assertEqual(['aaa', 'aaaa'], data["result"])
self.assertEqual([3, 4], data["source"])


def test_selection_parsing(self):
parser = DagSimSpec(file_name="yaml_files/selection.yml")
data = parser.parse(draw=False, verbose=False)
Expand Down

0 comments on commit 1698857

Please sign in to comment.