Hi,
Excuse me, this may be a Python question instead of a PyROOT one but here goes.
If I run the following bit of code
from ROOT import TCanvas
from ROOT import gROOT
gROOT.ProcessLine("gErrorIgnoreLevel = 1;")
canvas = TCanvas("canvas")
canvas.Print("canvas.ps")
through python. Why do I see the message ‘Info in : ps file canvas.ps has been created?’
This all is on a Mac running OS X 10.4.8, python 2.3.5 and 5.14/00.
Thanks,
Jeroen
Hi Jeroen,
for Info(…) use gErrorIgnoreLevel > 1000, for Warning(…) use gErrorIgnoreLevel > 2000, etc. See in file $ROOTSYS/base/inc/TError.h
Jan
Doh! Thanks I’m normally used to kInfo and blindly copied from the forum…
BTW. Do you also know why PyROOT (run from python) would not execute my rootrc and rootlogon files?
Thanks again,
Jeroen
Sorry, I don’t use PyROOT.
Jan
wlav
February 27, 2007, 12:03am
5
Hi,
are you sure about the former? AFAIK, rootrc works as expected. rootlogon.C isn’t processed, although it probably could be. Thanks for the suggestion; I’ll see what I can do …
Cheers,
Wim
Thanks Wim,
I was indeed a bit hasty. The only output I was missing should come from rootlogon, a more careful check shows that rootrc is properly processed.
Thanks again,
Jeroen