Re: [Numpy-discussion] Silencing NumPy output

2014-02-27 Thread Arnaud Bergeron
Since there was opposition to just removing the output all the time, I've added a new parameter, 'verbosity' that can be set to 0 to hide the output. This unfortunately requires a bit of code churn and changes the interface to get_info() (but in a backwards-compatible way). I came up with

Re: [Numpy-discussion] Silencing NumPy output

2013-11-27 Thread Frédéric Bastien
Hi, After more investigation, I found that there already exist a way to suppress those message on posix system. So I reused it in the PR. That way, it was faster, but prevent change in that area. So there is less change of breaking other syste: https://github.com/numpy/numpy/pull/4081 But it

Re: [Numpy-discussion] Silencing NumPy output

2013-11-22 Thread Frédéric Bastien
I didn't forgot this, but I got side tracked. Here is the Theano code I would like to try to use to replace os.system: https://github.com/Theano/Theano/blob/master/theano/misc/windows.py But I won't be able to try this before next week. Fred On Fri, Nov 15, 2013 at 5:49 PM, David Cournapeau

[Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Frédéric Bastien
Hi, NumPy 1.8 removed the private NumPy interface numpy.distutils.__config__. So a Theano user make a PR to make Theano use the official interface: numpy.distutils.system_info.get_info(blas_opt) But this output many stuff to the output. I can silence part of it by silencing warnings, but I'm

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Charles R Harris
On Fri, Nov 15, 2013 at 8:12 AM, Frédéric Bastien no...@nouiz.org wrote: Hi, NumPy 1.8 removed the private NumPy interface numpy.distutils.__config__. So a Theano user make a PR to make Theano use the official interface: numpy.distutils.system_info.get_info(blas_opt) But this output many

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Charles R Harris
On Fri, Nov 15, 2013 at 10:31 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Nov 15, 2013 at 8:12 AM, Frédéric Bastien no...@nouiz.org wrote: Hi, NumPy 1.8 removed the private NumPy interface numpy.distutils.__config__. So a Theano user make a PR to make Theano use the

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Charles R Harris
On Fri, Nov 15, 2013 at 10:40 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Nov 15, 2013 at 10:31 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Nov 15, 2013 at 8:12 AM, Frédéric Bastien no...@nouiz.orgwrote: Hi, NumPy 1.8 removed the private NumPy

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Frédéric Bastien
I found a line like this in the file: numpy/distutils/fcompiler/__init__.py I changed the -2 to 2, but it didn't change anything. In fact, this line wasn't called. The fct set_verbosity() is called only once, with the value of 0. The default value set at import. If I change that to 2 or -2, it

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Charles R Harris
On Fri, Nov 15, 2013 at 11:05 AM, Frédéric Bastien no...@nouiz.org wrote: I found a line like this in the file: numpy/distutils/fcompiler/__init__.py I changed the -2 to 2, but it didn't change anything. In fact, this line wasn't called. The fct set_verbosity() is called only once, with

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread David Cournapeau
On Fri, Nov 15, 2013 at 6:21 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Nov 15, 2013 at 11:05 AM, Frédéric Bastien no...@nouiz.orgwrote: I found a line like this in the file: numpy/distutils/fcompiler/__init__.py I changed the -2 to 2, but it didn't change anything.

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Frédéric Bastien
If it don't change, currently it mean that each process that use Theano and use BLAS will have that printed: Found executable /usr/bin/gfortran ATLAS version 3.8.3 built by mockbuild on Wed Jul 28 02:12:34 UTC 2010: UNAME: Linux x86-15.phx2.fedoraproject.org 2.6.32-44.el6.x86_64 #1 SMP Wed

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread Robert Kern
On Fri, Nov 15, 2013 at 7:28 PM, David Cournapeau courn...@gmail.com wrote: On Fri, Nov 15, 2013 at 6:21 PM, Charles R Harris charlesr.har...@gmail.com wrote: Sure, give it a shot. Looks like subprocess.Popen was intended to replace os.system in any case. Except that output is not 'real

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread David Cournapeau
On Fri, Nov 15, 2013 at 7:41 PM, Robert Kern robert.k...@gmail.com wrote: On Fri, Nov 15, 2013 at 7:28 PM, David Cournapeau courn...@gmail.com wrote: On Fri, Nov 15, 2013 at 6:21 PM, Charles R Harris charlesr.har...@gmail.com wrote: Sure, give it a shot. Looks like subprocess.Popen was

Re: [Numpy-discussion] Silencing NumPy output

2013-11-15 Thread David Cournapeau
On Fri, Nov 15, 2013 at 7:39 PM, Frédéric Bastien no...@nouiz.org wrote: If it don't change, currently it mean that each process that use Theano and use BLAS will have that printed: Found executable /usr/bin/gfortran ATLAS version 3.8.3 built by mockbuild on Wed Jul 28 02:12:34 UTC 2010: