Re: root verbosity level

From: Alfio <alfio.rizzo_at_vub.ac.be>
Date: Wed, 1 Jul 2009 16:11:55 +0200


Sebastien Binet ha scritto:
> On Tuesday 30 June 2009 20:43:58 Alfio wrote:
>

>> WLavrijsen_at_lbl.gov ha scritto:
>>     
>>> Alfio,
>>>
>>>       
>>>> I have just a trivial question.
>>>> Is it possible to reduce the verbosity level
>>>> just to avoid the warnings due to some dictionaries missing
>>>> when opening some root file?
>>>>         
>>> you can set the global variable gErrorIgnoreLevel to some high value,
>>> e.g. 3000.
>>>       
>

> alternatively, to not be blind about other maybe serious warnings/errors:
> http://alxr.usatlas.bnl.gov/lxr/source/atlas/Tools/PyUtils/python/Helpers.py?v=head#015
> which can be used like so:
>

> with Helpers.ShutUp():
> f = ROOT.TFile.Open(fname)
>

> the class captures stdout and stderr, apply some regexp-filtering on those and
> print whatever does not pass the filter(s)
>

> the default filters are:
> DefaultFilter = [
> re.compile("Warning in <TClass::TClass>: no dictionary for class."),
> re.compile("Warning in <TEnvRec::ChangeValue>: duplicate entry."),
> re.compile("Error in <TStreamerInfo::BuildOld>:."),
> ]
>

> hth,
> sebastien.
>
>>> HTH,
>>>   Wim
>>>       
>> It works !
>> thanks
>>
>> A
>>     
>

>

This is really useful!
Thanks

A

-- 
-------------------------------------------------------
			Alfio RIZZO
Vrije Universiteit Brussel
Faculteit Wetenschappen, Dienst ELEM
Gebouw G, Bureau 0G-111
Pleinlaan, 2 B-1050 Brussels BELGIUM
Tel. +32(0)26293220		Fax +32(0)26293816
alfio.rizzo_at_vub.ac.be		w3.iihe.ac.be/~rizzo
-------------------------------------------------------
Received on Wed Jul 01 2009 - 16:11:59 CEST

This archive was generated by hypermail 2.2.0 : Wed Jul 01 2009 - 17:50:02 CEST