[yt-users] Disabling yt info outputs

Nathan Goldbaum nathan12343 at gmail.com
Mon May 11 13:08:43 PDT 2015


You need to create a config file at ~/.yt/config.

Here's a sample one:

[yt]
suppressStreamLogging = True

You can also do this on a script-by-script basis by setting the log level:

http://yt-project.org/docs/dev/faq/index.html?highlight=log%20level#how-can-i-change-yt-s-log-level

On Mon, May 11, 2015 at 1:06 PM, Joshua Wall <joshua.e.wall at gmail.com>
wrote:

> Dear users,
>
>     I recently updated yt to the latest verison, and now when I run it in
> an ipython notebook I get obscene amounts of yt: INFO and yt: WARNING
> messages. So many that it actually hangs some analysis loops I'm running.
> How do I turn this output off?
>
> Sample from loading a file:
>
> yt : [INFO     ] 2015-05-11 16:01:16,453 integer runtime parameter checkpointfilenumber overwrites a simulation scalar of the same name
> yt : [INFO     ] 2015-05-11 16:01:16,455 integer runtime parameter particlefilenumber overwrites a simulation scalar of the same name
> yt : [INFO     ] 2015-05-11 16:01:16,456 integer runtime parameter plotfilenumber overwrites a simulation scalar of the same name
> yt : [INFO     ] 2015-05-11 16:01:16,512 Parameters: current_time              = 1.80820359458e+12
> yt : [INFO     ] 2015-05-11 16:01:16,514 Parameters: domain_dimensions         = [8 8 8]
> yt : [INFO     ] 2015-05-11 16:01:16,516 Parameters: domain_left_edge          = [ -1.29093000e+17  -1.29093000e+17  -1.29093000e+17]
> yt : [INFO     ] 2015-05-11 16:01:16,517 Parameters: domain_right_edge         = [  1.29093000e+17   1.29093000e+17   1.29093000e+17]
> yt : [INFO     ] 2015-05-11 16:01:16,519 Parameters: cosmological_simulation   = 0.0
>
>
> Any assistance is greatly appreciated. I checked the docs, but I was
> unable to find a way to pass to yt the configuration option which I suspect
> is the problem, namely one: suppressStreamLogging.
>
> Cordially,
>
> Joshua Wall
> Drexel University
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150511/158a92bd/attachment.htm>
-------------- next part --------------
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


More information about the yt-users mailing list