Skip to content

Commit

Permalink
Merge pull request #124 from bzamecnik/docs-fixes
Browse files Browse the repository at this point in the history
Fix small things in the docs
  • Loading branch information
Qwlouse committed Dec 6, 2016
2 parents 365aa13 + 20b567d commit 9e547a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions docs/experiment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,6 @@ containing all the values that you wish to update. For more information see
r = ex.run(config_updates={'foo': 23})
You can also specify the log-level while calling ``run`` like so. See
:doc:`logging` for more information:

.. code-block:: python
from my_experiment import ex
r = ex.run(loglevel='DEBUG')
.. note::

Under the hood a ``Run`` object is created every time you run an
Expand Down Expand Up @@ -154,11 +144,11 @@ To see how that works we need to *capture* some function:
bar = 'baz'
@ex.capture
def some_function(a, foo, bar=10)
def some_function(a, foo, bar=10):
print(a, foo, bar)
@ex.main
def my_main()
def my_main():
some_function(1, 2, 3) # 1 2 3
some_function(1) # 1 42 'baz'
some_function(1, bar=12) # 1 42 12
Expand Down
2 changes: 1 addition & 1 deletion examples/04_captured_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# coding=utf-8
"""
In this example the use of captured functions ist demonstrated. Like the
In this example the use of captured functions is demonstrated. Like the
main function, they have access to the configuration parameters by just
accepting them as arguments.
Expand Down

0 comments on commit 9e547a4

Please sign in to comment.