[yt-svn] commit/yt: xarthisius: Merged in ngoldbaum/yt (pull request #2400)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Oct 12 08:54:11 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/77f2798ee447/
Changeset:   77f2798ee447
Branch:      yt
User:        xarthisius
Date:        2016-10-12 15:53:44+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2400)

Updating outdated instructions about setting log level from docs. Closes #1285
Affected #:  2 files

diff -r d758c501e2f978eb8e2c817550595f41071b4b82 -r 77f2798ee447ff044484bb2a6604e022c0d47752 doc/source/faq/index.rst
--- a/doc/source/faq/index.rst
+++ b/doc/source/faq/index.rst
@@ -447,8 +447,8 @@
 
 .. code-block:: python
 
-   from yt.config import ytcfg
-   ytcfg["yt","loglevel"] = "40" # This sets the log level to "ERROR"
+   from yt.funcs import mylog
+   mylog.setLevel(40) # This sets the log level to "ERROR"
 
 which in this case would suppress everything below error messages. For reference, the numerical
 values corresponding to different log levels are:

diff -r d758c501e2f978eb8e2c817550595f41071b4b82 -r 77f2798ee447ff044484bb2a6604e022c0d47752 doc/source/reference/configuration.rst
--- a/doc/source/reference/configuration.rst
+++ b/doc/source/reference/configuration.rst
@@ -72,27 +72,6 @@
 file. Note that a log level of 1 means that all log messages are printed to
 stdout.  To disable logging, set the log level to 50.
 
-Setting Configuration On the Command Line
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-Options can also be set directly on the command line by specifying a
-command-line option.  For instance, if you are running the script
-``my_script.py`` you can specify a configuration option with the ``--config``
-argument.  As an example, to lower the log level (thus making it more verbose)
-you can specify:
-
-.. code-block:: bash
-
-   $ python2.7 my_script.py --config loglevel=1
-
-Any configuration option specific to yt can be specified in this manner.  One
-common configuration option would be to disable serialization:
-
-.. code-block:: bash
-
-   $ python2.7 my_script.py --config serialize=False
-
-This way projections are always re-created.
 
 Available Configuration Options
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list